mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 12:49:45 +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 New Issue
Block a user