https://git.reactos.org/?p=reactos.git;a=commitdiff;h=8313483202b2fc89a6888cd067eb0f10d36e99c8
commit 8313483202b2fc89a6888cd067eb0f10d36e99c8 Author: James Tabor <james.ta...@reactos.org> AuthorDate: Tue Sep 8 12:52:28 2020 -0500 Commit: James Tabor <james.ta...@reactos.org> CommitDate: Tue Sep 8 12:52:28 2020 -0500 [GDI32] Force Return if other Type of Device Requested Fix CORE-17241 assert. --- win32ss/gdi/gdi32/objects/dc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/win32ss/gdi/gdi32/objects/dc.c b/win32ss/gdi/gdi32/objects/dc.c index bde7f2377a4..91df2a90984 100644 --- a/win32ss/gdi/gdi32/objects/dc.c +++ b/win32ss/gdi/gdi32/objects/dc.c @@ -53,10 +53,12 @@ IntCreateDICW( if (lpwszOutput) RtlInitUnicodeString(&Output, lpwszOutput); + // Handle Print device or something else. if (!Display) { - //Handle Print device or something else. + // WIP - GDI Print Commit coming in soon. DPRINT1("Not a DISPLAY device! %wZ\n", &Device); + return NULL; // Return NULL until then..... } hdc = NtGdiOpenDCW((Default ? NULL : &Device),