From 8d051c81b2eaee29e433302109b80b321f9f6e68 Mon Sep 17 00:00:00 2001 From: Detlef Riekenberg Date: Tue, 10 Jul 2007 21:52:42 +0200 Subject: [PATCH] ntdll: Avoid crash with WINEDEBUG=+snoop. --- dlls/ntdll/relay.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/ntdll/relay.c b/dlls/ntdll/relay.c index 0b592ce915..a50ec34e5e 100644 --- a/dlls/ntdll/relay.c +++ b/dlls/ntdll/relay.c @@ -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;