Module: wine Branch: master Commit: 1736e7eb763b13cba94c1afc9c52f11b0257abd9 URL: http://source.winehq.org/git/wine.git/?a=commit;h=1736e7eb763b13cba94c1afc9c...
Author: Francois Gouget fgouget@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;