mirror of
https://github.com/reactos/reactos.git
synced 2025-04-05 05:01:03 +00:00
[GDI32] Force Return if other Type of Device Requested
Fix CORE-17241 assert.
This commit is contained in:
parent
32c7c1157d
commit
8313483202
1 changed files with 3 additions and 1 deletions
|
@ -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),
|
||||
|
|
Loading…
Reference in a new issue