mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 19:12:57 +00:00
tempary fix for CreateDC("DISPLAY","DISPLAY",....) until I figout some thing better
svn path=/trunk/; revision=25998
This commit is contained in:
parent
5e5311f4ae
commit
dbd1166859
1 changed files with 28 additions and 4 deletions
|
@ -811,6 +811,26 @@ IntGdiCreateDC(PUNICODE_STRING Driver,
|
||||||
|
|
||||||
RtlInitUnicodeString(&StdDriver, L"DISPLAY");
|
RtlInitUnicodeString(&StdDriver, L"DISPLAY");
|
||||||
|
|
||||||
|
if (Driver != NULL)
|
||||||
|
{
|
||||||
|
DPRINT1("NAME Driver: %wZ\n", Driver);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
DPRINT1("NAME Driver: NULL\n", Driver);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
if (Driver != NULL)
|
||||||
|
{
|
||||||
|
DPRINT1("NAME Device: %wZ\n", Device);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
DPRINT1("NAME Device: NULL\n", Device);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
if (NULL == Driver || 0 == RtlCompareUnicodeString(Driver, &StdDriver, TRUE))
|
if (NULL == Driver || 0 == RtlCompareUnicodeString(Driver, &StdDriver, TRUE))
|
||||||
{
|
{
|
||||||
if (CreateAsIC)
|
if (CreateAsIC)
|
||||||
|
@ -853,7 +873,8 @@ IntGdiCreateDC(PUNICODE_STRING Driver,
|
||||||
|
|
||||||
if (Driver != NULL && Driver->Buffer != NULL)
|
if (Driver != NULL && Driver->Buffer != NULL)
|
||||||
{
|
{
|
||||||
DPRINT("NAME: %wZ\n", Driver); // FIXME: Should not crash if NULL
|
if (Driver!=NULL)
|
||||||
|
DPRINT1("NAME: %wZ\n", Driver);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Allocate a DC object */
|
/* Allocate a DC object */
|
||||||
|
@ -962,9 +983,12 @@ NtGdiCreateDC(PUNICODE_STRING Driver,
|
||||||
Status = IntSafeCopyUnicodeString(&SafeDevice, Device);
|
Status = IntSafeCopyUnicodeString(&SafeDevice, Device);
|
||||||
if(!NT_SUCCESS(Status))
|
if(!NT_SUCCESS(Status))
|
||||||
{
|
{
|
||||||
RtlFreeUnicodeString(&SafeDriver);
|
/* FIXME workaround for a real bug */
|
||||||
SetLastNtError(Status);
|
// RtlFreeUnicodeString(&SafeDriver);
|
||||||
return NULL;
|
// SetLastNtError(Status);
|
||||||
|
// DPRINT1("fail3\n");
|
||||||
|
// return NULL;
|
||||||
|
Device = NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue