Commit 75b1db42 authored by Alexandre Julliard's avatar Alexandre Julliard

ntdll: Return the full path to start.exe in load_start_exe().

parent 87b7132b
......@@ -1625,22 +1625,20 @@ failed:
NTSTATUS load_start_exe( WCHAR **image, void **module )
{
static const WCHAR startW[] = {'s','t','a','r','t','.','e','x','e',0};
WCHAR buffer[sizeof("\\??\\C:\\windows\\system32\\start.exe")];
UNICODE_STRING nt_name;
NTSTATUS status;
SIZE_T size;
wcscpy( buffer, get_machine_wow64_dir( current_machine ));
wcscat( buffer, startW );
init_unicode_string( &nt_name, buffer );
*image = malloc( sizeof("\\??\\C:\\windows\\system32\\start.exe") * sizeof(WCHAR) );
wcscpy( *image, get_machine_wow64_dir( current_machine ));
wcscat( *image, startW );
init_unicode_string( &nt_name, *image );
status = find_builtin_dll( &nt_name, module, &size, &main_image_info, current_machine, FALSE );
if (status)
{
MESSAGE( "wine: failed to load start.exe: %x\n", status );
NtTerminateProcess( GetCurrentProcess(), status );
}
*image = malloc( sizeof(startW) );
memcpy( *image, startW, sizeof(startW) );
return status;
}
......
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