Initialize file_exists to 0 at exe load test, prevents mistaking of

UTF-8 encoded exenames as builtins.
This commit is contained in:
Alex Villacís Lasso 2005-11-28 10:35:10 +01:00 committed by Alexandre Julliard
parent ec34a66612
commit efb290b2f0
1 changed files with 1 additions and 0 deletions

View File

@ -161,6 +161,7 @@ static void *open_builtin_exe_file( const WCHAR *name, char *error, int error_si
WCHAR *p;
UINT i, len;
*file_exists = 0;
if ((p = strrchrW( name, '/' ))) name = p + 1;
if ((p = strrchrW( name, '\\' ))) name = p + 1;