Reece Dunn : shell32: Fix shlexec crashing on Vista.

Alexandre Julliard julliard at winehq.org
Fri Aug 1 05:34:00 CDT 2008


Module: wine
Branch: master
Commit: 428fd07e73c08e01f463982fab0d4b4267695b8f
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=428fd07e73c08e01f463982fab0d4b4267695b8f

Author: Reece Dunn <msclrhd at googlemail.com>
Date:   Wed Jul 30 22:22:27 2008 +0100

shell32: Fix shlexec crashing on Vista.

---

 dlls/shell32/tests/shlexec.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/dlls/shell32/tests/shlexec.c b/dlls/shell32/tests/shlexec.c
index 644d611..5eed12b 100644
--- a/dlls/shell32/tests/shlexec.c
+++ b/dlls/shell32/tests/shlexec.c
@@ -847,9 +847,12 @@ static void test_find_executable(void)
     /* Don't test FindExecutable(..., NULL), it always crashes */
 
     strcpy(command, "your word");
+    if (0) /* Can crash on Vista! */
+    {
     rc=(int)FindExecutableA(NULL, NULL, command);
     ok(rc == SE_ERR_FNF || rc > 32 /* nt4 */, "FindExecutable(NULL) returned %d\n", rc);
     ok(strcmp(command, "your word") != 0, "FindExecutable(NULL) returned command=[%s]\n", command);
+    }
 
     strcpy(command, "your word");
     rc=(int)FindExecutableA(tmpdir, NULL, command);




More information about the wine-cvs mailing list