Module: wine Branch: master Commit: 3e83b750383e061fb1919bb79e57e20064a874f6 URL: http://source.winehq.org/git/wine.git/?a=commit;h=3e83b750383e061fb1919bb79e...
Author: Detlef Riekenberg wine.dev@web.de Date: Tue Sep 25 23:15:00 2007 +0200
ntdll: Avoid segfault with snoop for exefiles with a broken export table.
---
dlls/ntdll/loader.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/ntdll/loader.c b/dlls/ntdll/loader.c index 04172f9..6c1d7bc 100644 --- a/dlls/ntdll/loader.c +++ b/dlls/ntdll/loader.c @@ -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) );