mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 04:13:34 +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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user