Initialize file_exists to 0 at exe load test, prevents mistaking of
UTF-8 encoded exenames as builtins.
This commit is contained in:
parent
ec34a66612
commit
efb290b2f0
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue