Commit 0566db7b authored by Alexandre Julliard's avatar Alexandre Julliard

setupapi: Create proper AMD64 fake dlls on 64-bit.

parent 6836990e
......@@ -272,7 +272,11 @@ static BOOL build_fake_dll( HANDLE file )
nt = info.nt = (IMAGE_NT_HEADERS *)(buffer + lfanew);
/* some fields are copied from the source dll */
#ifdef _WIN64
nt->FileHeader.Machine = IMAGE_FILE_MACHINE_AMD64;
#else
nt->FileHeader.Machine = IMAGE_FILE_MACHINE_I386;
#endif
nt->FileHeader.TimeDateStamp = 0;
nt->FileHeader.Characteristics = IMAGE_FILE_DLL;
nt->OptionalHeader.MajorLinkerVersion = 1;
......
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