kernel32: Fix file test compilation with PSDK headers.

This commit is contained in:
Dmitry Timoshkov 2012-03-08 20:29:35 +08:00 committed by Alexandre Julliard
parent d6d8865272
commit 75209ffdaf
1 changed files with 1 additions and 1 deletions

View File

@ -1763,7 +1763,7 @@ static BOOL create_fake_dll( LPCSTR filename )
# error You must specify the machine type
#endif
nt->FileHeader.NumberOfSections = 1;
nt->FileHeader.SizeOfOptionalHeader = IMAGE_SIZEOF_NT_OPTIONAL_HEADER;
nt->FileHeader.SizeOfOptionalHeader = sizeof(IMAGE_OPTIONAL_HEADER);
nt->FileHeader.Characteristics = IMAGE_FILE_DLL | IMAGE_FILE_EXECUTABLE_IMAGE;
nt->OptionalHeader.Magic = IMAGE_NT_OPTIONAL_HDR_MAGIC;
nt->OptionalHeader.MajorLinkerVersion = 1;