From 0566db7b897231272d0321d5d9eceeca9010698d Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Sat, 27 Mar 2010 11:50:23 +0100 Subject: [PATCH] setupapi: Create proper AMD64 fake dlls on 64-bit. --- dlls/setupapi/fakedll.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dlls/setupapi/fakedll.c b/dlls/setupapi/fakedll.c index ade675455af..4090fa1eaa3 100644 --- a/dlls/setupapi/fakedll.c +++ b/dlls/setupapi/fakedll.c @@ -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;