Commit 1e1f110c authored by Alexandre Julliard's avatar Alexandre Julliard

kernel32: Return failure in GetBinaryType() for DLL files.

parent 44f0a67b
......@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment