Fix frist issue with ms dxg.sys

check if hdc is null or not. 

svn path=/trunk/; revision=33009
This commit is contained in:
Magnus Olsen 2008-04-17 21:08:39 +00:00
parent 359d4d352b
commit 6b9e9dfb11

View file

@ -130,6 +130,12 @@ NtGdiDdCreateDirectDrawObject(HDC hdc)
NTSTATUS Status;
PEPROCESS Proc = NULL;
INT i=0;
if (hdc == NULL)
{
DPRINT1("Warning : hdc is NULL\n");
return 0;
}
/* FIXME get the process data */
/* FIXME this code should be add where the driver being load */