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

This commit is contained in:
Rein Klazes 1999-07-11 13:50:24 +00:00 committed by Alexandre Julliard
parent b135adf183
commit eaec1eeda5
1 changed files with 1 additions and 0 deletions

View File

@ -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
{