[GDI32] Force Return if other Type of Device Requested

Fix CORE-17241 assert.
This commit is contained in:
James Tabor 2020-09-08 12:52:28 -05:00
parent 32c7c1157d
commit 8313483202

View file

@ -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),