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/obj... ============================================================================== --- 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; }