mirror of
https://github.com/reactos/reactos.git
synced 2025-05-28 21:48:19 +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:
parent
3390cf5cda
commit
c05565862c
1 changed files with 7 additions and 1 deletions
|
@ -48,6 +48,12 @@ HANDLE STDCALL NtGdiDdCreateDirectDrawObject(
|
||||||
RtlZeroMemory(&palette_callbacks, sizeof(DD_PALETTECALLBACKS));
|
RtlZeroMemory(&palette_callbacks, sizeof(DD_PALETTECALLBACKS));
|
||||||
palette_callbacks.dwSize = 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);
|
DC *pDC = DC_LockDc(hdc);
|
||||||
if (!pDC)
|
if (!pDC)
|
||||||
|
|
Loading…
Reference in a new issue