setupapi: Add support for more architectures when building fake dlls.

This commit is contained in:
André Hentschel 2014-03-22 16:41:30 +01:00 committed by Alexandre Julliard
parent 467b769623
commit 4bcc492fe3
1 changed files with 7 additions and 1 deletions

View File

@ -275,8 +275,14 @@ static BOOL build_fake_dll( HANDLE file, const WCHAR *name )
nt = info.nt = (IMAGE_NT_HEADERS *)(buffer + lfanew);
/* some fields are copied from the source dll */
#ifdef _WIN64
#if defined __x86_64__
nt->FileHeader.Machine = IMAGE_FILE_MACHINE_AMD64;
#elif defined __aarch64__
nt->FileHeader.Machine = IMAGE_FILE_MACHINE_ARMNT;
#elif defined __arm__
nt->FileHeader.Machine = IMAGE_FILE_MACHINE_ARM64;
#elif defined __powerpc__
nt->FileHeader.Machine = IMAGE_FILE_MACHINE_POWERPC;
#else
nt->FileHeader.Machine = IMAGE_FILE_MACHINE_I386;
#endif