[PATCH] [DbgHelp]: fix invalid pointer deref
Eric Pouech
eric.pouech at orange.fr
Sat Apr 12 05:58:50 CDT 2008
(#12445)
A+
---
dlls/dbghelp/pe_module.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/dbghelp/pe_module.c b/dlls/dbghelp/pe_module.c
index ca40417..533cfeb 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;
}
More information about the wine-patches
mailing list