Commit 1736e7eb authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

shell32/tests: On Windows 98 FindExecutable() does not '\0' terminate the…

shell32/tests: On Windows 98 FindExecutable() does not '\0' terminate the returned command which caused many tests to fail.
parent 789fb4c9
...@@ -759,6 +759,8 @@ static void test_find_executable(void) ...@@ -759,6 +759,8 @@ static void test_find_executable(void)
c++; c++;
} }
} }
/* Win98 does not '\0'-terminate command! */
memset(command, '\0', sizeof(command));
rc=(int)FindExecutableA(filename, NULL, command); rc=(int)FindExecutableA(filename, NULL, command);
if (rc > 32) if (rc > 32)
rc=33; rc=33;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment