mirror of
https://github.com/reactos/reactos.git
synced 2025-04-22 05:00:27 +00:00
[Win32k]
- Fix sign for BeginDeferWindowPos(-1) test, see bug 6025. svn path=/trunk/; revision=51093
This commit is contained in:
parent
80b43e7b13
commit
f106ac2d2b
1 changed files with 6 additions and 4 deletions
|
@ -162,13 +162,15 @@ NtUserCallOneParam(
|
||||||
{
|
{
|
||||||
PSMWP psmwp;
|
PSMWP psmwp;
|
||||||
HDWP hDwp = NULL;
|
HDWP hDwp = NULL;
|
||||||
if (Param < 0)
|
INT count = (INT)Param;
|
||||||
|
|
||||||
|
if (count < 0)
|
||||||
{
|
{
|
||||||
EngSetLastError(ERROR_INVALID_PARAMETER);
|
EngSetLastError(ERROR_INVALID_PARAMETER);
|
||||||
RETURN(0);
|
RETURN(0);
|
||||||
}
|
}
|
||||||
/* Windows allows zero count, in which case it allocates context for 8 moves */
|
/* Windows allows zero count, in which case it allocates context for 8 moves */
|
||||||
if (Param == 0) Param = 8;
|
if (count == 0) count = 8;
|
||||||
|
|
||||||
psmwp = (PSMWP) UserCreateObject( gHandleTable,
|
psmwp = (PSMWP) UserCreateObject( gHandleTable,
|
||||||
NULL,
|
NULL,
|
||||||
|
@ -176,13 +178,13 @@ NtUserCallOneParam(
|
||||||
otSMWP,
|
otSMWP,
|
||||||
sizeof(SMWP));
|
sizeof(SMWP));
|
||||||
if (!psmwp) RETURN(0);
|
if (!psmwp) RETURN(0);
|
||||||
psmwp->acvr = ExAllocatePoolWithTag(PagedPool, Param * sizeof(CVR), USERTAG_SWP);
|
psmwp->acvr = ExAllocatePoolWithTag(PagedPool, count * sizeof(CVR), USERTAG_SWP);
|
||||||
if (!psmwp->acvr)
|
if (!psmwp->acvr)
|
||||||
{
|
{
|
||||||
UserDeleteObject(hDwp, otSMWP);
|
UserDeleteObject(hDwp, otSMWP);
|
||||||
RETURN(0);
|
RETURN(0);
|
||||||
}
|
}
|
||||||
RtlZeroMemory(psmwp->acvr, Param * sizeof(CVR));
|
RtlZeroMemory(psmwp->acvr, count * sizeof(CVR));
|
||||||
psmwp->bHandle = TRUE;
|
psmwp->bHandle = TRUE;
|
||||||
psmwp->ccvr = 0; // actualCount
|
psmwp->ccvr = 0; // actualCount
|
||||||
psmwp->ccvrAlloc = Param; // suggestedCount
|
psmwp->ccvrAlloc = Param; // suggestedCount
|
||||||
|
|
Loading…
Reference in a new issue