mirror of
https://github.com/reactos/reactos.git
synced 2025-08-07 16:43:00 +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);
|
if (lpwszOutput) RtlInitUnicodeString(&Output, lpwszOutput);
|
||||||
|
|
||||||
|
// Handle Print device or something else.
|
||||||
if (!Display)
|
if (!Display)
|
||||||
{
|
{
|
||||||
//Handle Print device or something else.
|
// WIP - GDI Print Commit coming in soon.
|
||||||
DPRINT1("Not a DISPLAY device! %wZ\n", &Device);
|
DPRINT1("Not a DISPLAY device! %wZ\n", &Device);
|
||||||
|
return NULL; // Return NULL until then.....
|
||||||
}
|
}
|
||||||
|
|
||||||
hdc = NtGdiOpenDCW((Default ? NULL : &Device),
|
hdc = NtGdiOpenDCW((Default ? NULL : &Device),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue