ntdll: Avoid segfault with snoop for exefiles with a broken export table.

This commit is contained in:
Detlef Riekenberg 2007-09-25 23:15:00 +02:00 committed by Alexandre Julliard
parent 6be7eba918
commit 3e83b75038
1 changed files with 1 additions and 1 deletions

View File

@ -1444,7 +1444,7 @@ static NTSTATUS load_native_dll( LPCWSTR load_path, LPCWSTR name, HANDLE file,
}
SERVER_END_REQ;
if (TRACE_ON(snoop)) SNOOP_SetupDLL( module );
if ((wm->ldr.Flags & LDR_IMAGE_IS_DLL) && TRACE_ON(snoop)) SNOOP_SetupDLL( module );
TRACE_(loaddll)( " Loaded module %s : native\n", debugstr_w(wm->ldr.FullDllName.Buffer) );