dbghelp: Fix invalid pointer dereference.

This commit is contained in:
Eric Pouech 2008-04-12 12:58:50 +02:00 committed by Alexandre Julliard
parent e05ccfe2bb
commit d2fa765087

View File

@ -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;
}