projects
/
reactos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
GetCurrentObject does not SetLastError() on a null object.
[reactos.git]
/
reactos
/
subsys
/
win32k
/
objects
/
dc.c
diff --git
a/reactos/subsys/win32k/objects/dc.c
b/reactos/subsys/win32k/objects/dc.c
index
8cff9d7
..
5a33135
100644
(file)
--- a/
reactos/subsys/win32k/objects/dc.c
+++ b/
reactos/subsys/win32k/objects/dc.c
@@
-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);