Skip to content

Commit aaab5f0

Browse files
authored
[WIN32SS:NTGDI] IntGdiCreateDisplayDC: Directly invoke GreCreateCompatibleDC (reactos#9164)
Call the internal GreCreateCompatibleDC instead of the NtGdi syscall stub.
1 parent 6e95a13 commit aaab5f0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

win32ss/gdi/ntgdi/dclife.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1066,7 +1066,7 @@ IntGdiCreateDisplayDC(HDEV hDev, ULONG DcType, BOOL EmptyDC)
10661066
UNIMPLEMENTED;
10671067

10681068
if (DcType == DCTYPE_MEMORY)
1069-
hDC = NtGdiCreateCompatibleDC(NULL); // OH~ Yuck! I think I taste vomit in my mouth!
1069+
hDC = GreCreateCompatibleDC(NULL, FALSE);
10701070
else
10711071
hDC = IntGdiCreateDC(NULL, NULL, NULL, NULL, (DcType == DCTYPE_INFO));
10721072

0 commit comments

Comments
 (0)