mirror of
https://github.com/reactos/reactos.git
synced 2025-02-23 08:55:19 +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);
|
||||
}
|
||||
|
||||
/* Return the old bitmp handle */
|
||||
/* Return the old bitmap handle */
|
||||
return hbmpOld;
|
||||
}
|
||||
|
||||
|
@ -522,7 +522,7 @@ NtGdiGetRandomRgn(
|
|||
pdc = DC_LockDc(hdc);
|
||||
if (!pdc)
|
||||
{
|
||||
EngSetLastError(ERROR_INVALID_HANDLE);
|
||||
EngSetLastError(ERROR_INVALID_PARAMETER);
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue