Commit eaec1eed authored by Rein Klazes's avatar Rein Klazes Committed by Alexandre Julliard

Fixed a case when GlobalSize did not return zero after an error.

parent b135adf1
......@@ -1379,6 +1379,7 @@ DWORD WINAPI GlobalSize(
return 0;
retval=HeapSize(GetProcessHeap(), 0,
(char *)(pintern->Pointer)-sizeof(HGLOBAL))-4;
if (retval == 0xffffffff-4) retval = 0;
}
else
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment