mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-14 17:47:16 +00:00
dbghelp: Fix invalid pointer dereference.
This commit is contained in:
parent
e05ccfe2bb
commit
d2fa765087
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue