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

This commit is contained in:
Alexandre Julliard 2010-03-27 11:50:23 +01:00
parent 6836990e0b
commit 0566db7b89
1 changed files with 4 additions and 0 deletions

View File

@ -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;