mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 17:12:58 +00:00
Set last error to ERROR_INVALID_PARAMETER in NtGdiGetRandomRgn if invalid hdc is given
Fixes gdi32:GetClipRgn apitest svn path=/trunk/; revision=51106
This commit is contained in:
parent
32b6884390
commit
6a7c60945f
1 changed files with 2 additions and 2 deletions
|
@ -367,7 +367,7 @@ NtGdiSelectBitmap(
|
||||||
REGION_FreeRgnByHandle(hVisRgn);
|
REGION_FreeRgnByHandle(hVisRgn);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Return the old bitmp handle */
|
/* Return the old bitmap handle */
|
||||||
return hbmpOld;
|
return hbmpOld;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -522,7 +522,7 @@ NtGdiGetRandomRgn(
|
||||||
pdc = DC_LockDc(hdc);
|
pdc = DC_LockDc(hdc);
|
||||||
if (!pdc)
|
if (!pdc)
|
||||||
{
|
{
|
||||||
EngSetLastError(ERROR_INVALID_HANDLE);
|
EngSetLastError(ERROR_INVALID_PARAMETER);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue