shell32/tests: On Windows 98 FindExecutable() does not '\0' terminate the returned command which caused many tests to fail.

This commit is contained in:
Francois Gouget 2007-04-02 19:32:16 +02:00 committed by Alexandre Julliard
parent 789fb4c994
commit 1736e7eb76
1 changed files with 2 additions and 0 deletions

View File

@ -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;