mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-30 04:13:33 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user