mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 16:36:33 +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");
|
||||
|
||||
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 (CreateAsIC)
|
||||
|
@ -853,7 +873,8 @@ IntGdiCreateDC(PUNICODE_STRING Driver,
|
|||
|
||||
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 */
|
||||
|
@ -962,9 +983,12 @@ NtGdiCreateDC(PUNICODE_STRING Driver,
|
|||
Status = IntSafeCopyUnicodeString(&SafeDevice, Device);
|
||||
if(!NT_SUCCESS(Status))
|
||||
{
|
||||
RtlFreeUnicodeString(&SafeDriver);
|
||||
SetLastNtError(Status);
|
||||
return NULL;
|
||||
/* FIXME workaround for a real bug */
|
||||
// RtlFreeUnicodeString(&SafeDriver);
|
||||
// SetLastNtError(Status);
|
||||
// DPRINT1("fail3\n");
|
||||
// return NULL;
|
||||
Device = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue