From d88e7661e0146df340a3dbeb868a96d912dd1f31 Mon Sep 17 00:00:00 2001 From: Bertho Stultiens Date: Sat, 22 May 1999 11:26:33 +0000 Subject: [PATCH] Bugfix: Prevent null-pointer dereference in TRACE argument list in RES_FindResource --- loader/resource.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/loader/resource.c b/loader/resource.c index 017ddcc5105..38f412e1645 100644 --- a/loader/resource.c +++ b/loader/resource.c @@ -139,7 +139,7 @@ static HRSRC RES_FindResource( HMODULE hModule, LPCSTR type, MODULE32_LookupHMODULE( pModule->module32 ) : NULL; TRACE_(resource)("(%08x %s, %08x%s, %08x%s, %04x, %s, %s)\n", - hModule, NE_MODULE_NAME(pModule), + hModule, pModule ? (char *)NE_MODULE_NAME(pModule) : "NULL dereference", (UINT)type, HIWORD(type)? (bUnicode? debugstr_w((LPWSTR)type) : debugstr_a(type)) : "", (UINT)name, HIWORD(name)? (bUnicode? debugstr_w((LPWSTR)name) : debugstr_a(name)) : "", lang,