Don't fail on pointer address checking when foreign heap.
This commit is contained in:
parent
adb46390cb
commit
5448c534f3
@ -783,10 +783,13 @@ static BOOL validArg(
|
|||||||
if (psa == NULL)
|
if (psa == NULL)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
/* Check whether the size of the chunk make sens... That's the only thing
|
/* Check whether the size of the chunk makes sense... That's the only thing
|
||||||
I can think of now... */
|
I can think of now... */
|
||||||
|
|
||||||
psaSize = HeapSize(GetProcessHeap(), 0, psa);
|
psaSize = HeapSize(GetProcessHeap(), 0, psa);
|
||||||
|
if (psaSize == -1)
|
||||||
|
/* uh, foreign heap. Better don't mess with it ! */
|
||||||
|
return TRUE;
|
||||||
|
|
||||||
/* size of the descriptor when the SA is not created with CreateVector */
|
/* size of the descriptor when the SA is not created with CreateVector */
|
||||||
descSize = sizeof(*psa) + (sizeof(*sab) * (psa->cDims-1));
|
descSize = sizeof(*psa) + (sizeof(*sab) * (psa->cDims-1));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user