[ros-diffs] [rharabien] 51106: Set last error to ERROR_INVALID_PARAMETER in NtGdiGetRandomRgn if invalid hdc is given Fixes gdi32:GetClipRgn apitest
rharabien at svn.reactos.org
rharabien at svn.reactos.org
Mon Mar 21 14:32:47 UTC 2011
Author: rharabien
Date: Mon Mar 21 14:32:46 2011
New Revision: 51106
URL: http://svn.reactos.org/svn/reactos?rev=51106&view=rev
Log:
Set last error to ERROR_INVALID_PARAMETER in NtGdiGetRandomRgn if invalid hdc is given
Fixes gdi32:GetClipRgn apitest
Modified:
trunk/reactos/subsystems/win32/win32k/objects/dcobjs.c
Modified: trunk/reactos/subsystems/win32/win32k/objects/dcobjs.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/objects/dcobjs.c?rev=51106&r1=51105&r2=51106&view=diff
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/objects/dcobjs.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/objects/dcobjs.c [iso-8859-1] Mon Mar 21 14:32:46 2011
@@ -367,7 +367,7 @@
REGION_FreeRgnByHandle(hVisRgn);
}
- /* Return the old bitmp handle */
+ /* Return the old bitmap handle */
return hbmpOld;
}
@@ -522,7 +522,7 @@
pdc = DC_LockDc(hdc);
if (!pdc)
{
- EngSetLastError(ERROR_INVALID_HANDLE);
+ EngSetLastError(ERROR_INVALID_PARAMETER);
return -1;
}
More information about the Ros-diffs
mailing list