mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 09:25:10 +00:00
[WIN32K]
Addendum to r51188: set last error, when overflow check fails. Fixes test regression. svn path=/trunk/; revision=51194
This commit is contained in:
parent
6771858659
commit
2127ff030c
1 changed files with 10 additions and 6 deletions
|
@ -84,11 +84,11 @@ NtUserBitBltSysBmp(
|
|||
Ret = NtGdiBitBlt( hdc,
|
||||
nXDest,
|
||||
nYDest,
|
||||
nWidth,
|
||||
nHeight,
|
||||
nWidth,
|
||||
nHeight,
|
||||
hSystemBM,
|
||||
nXSrc,
|
||||
nYSrc,
|
||||
nXSrc,
|
||||
nYSrc,
|
||||
dwRop,
|
||||
0,
|
||||
0);
|
||||
|
@ -255,7 +255,7 @@ HBRUSH
|
|||
APIENTRY
|
||||
NtUserGetControlColor(
|
||||
HWND hwndParent,
|
||||
HWND hwnd,
|
||||
HWND hwnd,
|
||||
HDC hdc,
|
||||
UINT CtlMsg) // Wine PaintRect: WM_CTLCOLORMSGBOX + hbrush
|
||||
{
|
||||
|
@ -380,7 +380,7 @@ NtUserInitializeClientPfnArrays(
|
|||
DPRINT1("Failed reading Client Pfns from user space.\n");
|
||||
SetLastNtError(Status);
|
||||
}
|
||||
|
||||
|
||||
UserLeave();
|
||||
return Status;
|
||||
}
|
||||
|
@ -543,8 +543,12 @@ NtUserSetSysColors(
|
|||
if (cElements == 0)
|
||||
return TRUE;
|
||||
|
||||
/* We need this check to prevent overflow later */
|
||||
if ((ULONG)cElements >= 0x40000000)
|
||||
{
|
||||
EngSetLastError(ERROR_NOACCESS);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
UserEnterExclusive();
|
||||
|
||||
|
|
Loading…
Reference in a new issue