*/
static BOOL get_builtin_path( const WCHAR *libname, const WCHAR *ext, WCHAR *filename, UINT size )
{
+ static const WCHAR commandW[] = {'c','o','m','m','a','n','d',0};
+ static const WCHAR command_comW[] = {'c','o','m','m','a','n','d','.','c','o','m',0};
+ static const WCHAR cmdW[] = {'c','m','d','.','e','x','e',0};
WCHAR *file_part;
UINT len = strlenW( DIR_System );
if (file_part > filename && file_part[-1] != '\\') *file_part++ = '\\';
strcpyW( file_part, libname );
}
+ /* replace command[.com] with cmd.exe (HACK for eterbug #7103) */
+ if (!strcmpiW( file_part, commandW ) || !strcmpiW( file_part, command_comW ))
+ /* cmdW is not longer than commandW and command_comW */
+ strcpyW( file_part, cmdW );
if (ext && !strchrW( file_part, '.' ))
{
if (file_part + strlenW(file_part) + strlenW(ext) + 1 > filename + size)