kernel32: Return failure in GetBinaryType() for DLL files.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
44f0a67ba5
commit
1e1f110c99
|
@ -190,6 +190,7 @@ BOOL WINAPI GetBinaryTypeW( LPCWSTR name, LPDWORD type )
|
|||
status = NtQuerySection( mapping, SectionImageInformation, &info, sizeof(info), NULL );
|
||||
CloseHandle( mapping );
|
||||
if (status) return FALSE;
|
||||
if (!(info.ImageCharacteristics & IMAGE_FILE_DLL)) return FALSE;
|
||||
switch (info.Machine)
|
||||
{
|
||||
case IMAGE_FILE_MACHINE_I386:
|
||||
|
|
Loading…
Reference in New Issue