ntdll: Avoid crash with WINEDEBUG=+snoop.

This commit is contained in:
Detlef Riekenberg 2007-07-10 21:52:42 +02:00 committed by Alexandre Julliard
parent 22e94d0ba6
commit 8d051c81b2
1 changed files with 1 additions and 1 deletions

View File

@ -650,7 +650,7 @@ void SNOOP_SetupDLL(HMODULE hmod)
if (!init_done) init_debug_lists();
exports = RtlImageDirectoryEntryToData( hmod, TRUE, IMAGE_DIRECTORY_ENTRY_EXPORT, &size32 );
if (!exports) return;
if (!exports || !exports->NumberOfFunctions) return;
name = (char *)hmod + exports->Name;
size = size32;