Francois Gouget : shell32/tests: On Windows 98 FindExecutable() does
not '
\0' terminate the returned command which caused many tests to fail.
Alexandre Julliard
julliard at wine.codeweavers.com
Tue Apr 3 06:48:32 CDT 2007
Module: wine
Branch: master
Commit: 1736e7eb763b13cba94c1afc9c52f11b0257abd9
URL: http://source.winehq.org/git/wine.git/?a=commit;h=1736e7eb763b13cba94c1afc9c52f11b0257abd9
Author: Francois Gouget <fgouget at codeweavers.com>
Date: Mon Apr 2 19:32:16 2007 +0200
shell32/tests: On Windows 98 FindExecutable() does not '\0' terminate the returned command which caused many tests to fail.
---
dlls/shell32/tests/shlexec.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/dlls/shell32/tests/shlexec.c b/dlls/shell32/tests/shlexec.c
index 708c06c..849c275 100644
--- a/dlls/shell32/tests/shlexec.c
+++ b/dlls/shell32/tests/shlexec.c
@@ -759,6 +759,8 @@ static void test_find_executable(void)
c++;
}
}
+ /* Win98 does not '\0'-terminate command! */
+ memset(command, '\0', sizeof(command));
rc=(int)FindExecutableA(filename, NULL, command);
if (rc > 32)
rc=33;
More information about the wine-cvs
mailing list