Commit bcbb6ec9 authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

Return values are reversed in failure/rgdata == NULL case in

GetRegionData (was merge error by me).
parent 3c5f8952
......@@ -864,10 +864,10 @@ DWORD WINAPI GetRegionData(HRGN hrgn, DWORD count, LPRGNDATA rgndata)
if(count < (size + sizeof(RGNDATAHEADER)) || rgndata == NULL)
{
GDI_ReleaseObj( hrgn );
if (rgndata)
return size + sizeof(RGNDATAHEADER);
else
if (rgndata) /* buffer is too small, signal it by return 0 */
return 0;
else /* user requested buffer size with rgndata NULL */
return size + sizeof(RGNDATAHEADER);
}
rgndata->rdh.dwSize = sizeof(RGNDATAHEADER);
......
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