[WIN32K] Add a comment regarding UserEnterExclusive() in UserGetDesktopDC()
authorTimo Kreuzer <timo.kreuzer@reactos.org>
Thu, 5 Oct 2017 16:40:33 +0000 (18:40 +0200)
committerTimo Kreuzer <timo.kreuzer@reactos.org>
Thu, 5 Oct 2017 16:40:33 +0000 (18:40 +0200)
This is a test-commit using GitHubs SVN interface.

win32ss/user/ntuser/desktop.c

index 6ecf94b..4d7f76b 100644 (file)
@@ -932,6 +932,7 @@ UserGetDesktopDC(ULONG DcType, BOOL EmptyDC, BOOL ValidatehWnd)
     PWND DesktopObject = 0;
     HDC DesktopHDC = 0;
 
+    /* This can be called from GDI/DX, so acquire the USER lock */\r
     UserEnterExclusive();
 
     if (DcType == DC_TYPE_DIRECT)