Ret = NtGdiBitBlt( hdc,
nXDest,
nYDest,
- nWidth,
- nHeight,
+ nWidth,
+ nHeight,
hSystemBM,
- nXSrc,
- nYSrc,
+ nXSrc,
+ nYSrc,
dwRop,
0,
0);
APIENTRY
NtUserGetControlColor(
HWND hwndParent,
- HWND hwnd,
+ HWND hwnd,
HDC hdc,
UINT CtlMsg) // Wine PaintRect: WM_CTLCOLORMSGBOX + hbrush
{
DPRINT1("Failed reading Client Pfns from user space.\n");
SetLastNtError(Status);
}
-
+
UserLeave();
return Status;
}
if (cElements == 0)
return TRUE;
+ /* We need this check to prevent overflow later */
if ((ULONG)cElements >= 0x40000000)
+ {
+ EngSetLastError(ERROR_NOACCESS);
return FALSE;
+ }
UserEnterExclusive();