mirror of
https://github.com/reactos/reactos.git
synced 2026-05-31 16:31:07 +08:00
[GDI32] Force Return if other Type of Device Requested
Fix CORE-17241 assert.
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user