From d2fa765087b0502242a1fa1ce2c8ad370be1e727 Mon Sep 17 00:00:00 2001 From: Eric Pouech Date: Sat, 12 Apr 2008 12:58:50 +0200 Subject: [PATCH] dbghelp: Fix invalid pointer dereference. --- dlls/dbghelp/pe_module.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/dbghelp/pe_module.c b/dlls/dbghelp/pe_module.c index ca40417ced..533cfeb603 100644 --- a/dlls/dbghelp/pe_module.c +++ b/dlls/dbghelp/pe_module.c @@ -456,7 +456,7 @@ PVOID WINAPI ImageDirectoryEntryToDataEx( PVOID base, BOOLEAN image, USHORT dir, *size = nt->OptionalHeader.DataDirectory[dir].Size; if (image || addr < nt->OptionalHeader.SizeOfHeaders) { - if (*section) *section = NULL; + if (section) *section = NULL; return (char *)base + addr; } -- 2.32.0.93.g670b81a890