From 90d97e64e9e01b804287d4dc64d9ffb648e5398e Mon Sep 17 00:00:00 2001 From: Andrew Innes Date: Mon, 18 Dec 2000 23:54:15 +0000 Subject: [PATCH] (Fw32_shell_execute): Use it. --- src/ChangeLog | 8 ++++++++ src/w32fns.c | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index 7f82d5785da..089aebbeb9f 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,11 @@ +2000-12-18 Andrew Innes + + * w32.c (w32_strerror): New function. + + * w32.h (w32_strerror): New extern. + + * w32fns.c (Fw32_shell_execute): Use it. + 2000-12-18 Gerd Moellmann * s/hpux10.h (_FILE_OFFSET_BITS): Undef again. diff --git a/src/w32fns.c b/src/w32fns.c index c888dd36716..7e316a5841a 100644 --- a/src/w32fns.c +++ b/src/w32fns.c @@ -12958,7 +12958,7 @@ otherwise it is an integer representing a ShowWindow flag:\n\ XINT (show_flag) : SW_SHOWDEFAULT)) > 32) return Qt; - error ("ShellExecute failed"); + error ("ShellExecute failed: %s", w32_strerror (0)); } /* Lookup virtual keycode from string representing the name of a -- 2.39.2