Take care of one BSOD in NtGdiDdCreateDirectDrawObject, it is not correct fix, it is a work around, the HDC can be NULL. it prevent some bsod for my new test apps for directx

svn path=/trunk/; revision=20017
This commit is contained in:
Magnus Olsen 2005-12-09 20:40:52 +00:00
parent 3390cf5cda
commit c05565862c

View file

@ -48,7 +48,13 @@ HANDLE STDCALL NtGdiDdCreateDirectDrawObject(
RtlZeroMemory(&palette_callbacks, sizeof(DD_PALETTECALLBACKS));
palette_callbacks.dwSize = sizeof(DD_PALETTECALLBACKS);
/* FIXME hdc can be zero for d3d9 */
/* we need create it, if in that case */
if (hdc == NULL)
{
return NULL;
}
DC *pDC = DC_LockDc(hdc);
if (!pDC)
return NULL;