mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 16:36:33 +00:00
Do not crash in GetDC, mplayer company we do not have a backbuffer now. good news, instead for a crash
svn path=/trunk/; revision=25152
This commit is contained in:
parent
e24638087b
commit
ac78b1e624
1 changed files with 1 additions and 14 deletions
|
@ -493,20 +493,7 @@ Main_DDrawSurface_GetDC(LPDIRECTDRAWSURFACE7 iface, HDC *phDC)
|
|||
|
||||
This = (LPDDRAWI_DDRAWSURFACE_INT)iface;
|
||||
|
||||
/*
|
||||
FIXME check if the surface exists or not
|
||||
for now we aussme the surface exits and create the hDC for it
|
||||
*/
|
||||
|
||||
if ((HDC)This->lpLcl->hDC == NULL)
|
||||
{
|
||||
This->lpLcl->hDC = (ULONG_PTR)GetDC((HWND)This->lpLcl->lpGbl->lpDD->lpExclusiveOwner->hWnd);
|
||||
*phDC = (HDC)This->lpLcl->hDC;
|
||||
}
|
||||
else
|
||||
{
|
||||
*phDC = (HDC)This->lpLcl->hDC;
|
||||
}
|
||||
*phDC = This->lpLcl->lpSurfMore->lpDD_lcl->hDC;
|
||||
|
||||
return DD_OK;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue