mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-31 19:26:42 +00:00
GetCurrentObject does not SetLastError() on a null object.
svn path=/trunk/; revision=21010
This commit is contained in:
@@ -1173,6 +1173,9 @@ NtGdiGetCurrentObject(HDC hDC, UINT ObjectType)
|
||||
HGDIOBJ SelObject;
|
||||
DC *dc;
|
||||
|
||||
/* From Wine: GetCurrentObject does not SetLastError() on a null object */
|
||||
if(!hDC) return NULL;
|
||||
|
||||
if(!(dc = DC_LockDc(hDC)))
|
||||
{
|
||||
SetLastWin32Error(ERROR_INVALID_HANDLE);
|
||||
|
||||
Reference in New Issue
Block a user