mirror of
https://github.com/reactos/reactos.git
synced 2024-08-02 09:30:55 +00:00
add seh around Main_DirectDraw_AddRef this prevent any crash it can cause
svn path=/trunk/; revision=26946
This commit is contained in:
parent
07306934a8
commit
7b5da8f737
|
@ -49,11 +49,12 @@ Main_DirectDraw_QueryInterface (LPDIRECTDRAW7 iface,
|
||||||
ULONG WINAPI
|
ULONG WINAPI
|
||||||
Main_DirectDraw_AddRef (LPDIRECTDRAW7 iface)
|
Main_DirectDraw_AddRef (LPDIRECTDRAW7 iface)
|
||||||
{
|
{
|
||||||
|
ULONG retValue = 0;
|
||||||
LPDDRAWI_DIRECTDRAW_INT This = (LPDDRAWI_DIRECTDRAW_INT)iface;
|
LPDDRAWI_DIRECTDRAW_INT This = (LPDDRAWI_DIRECTDRAW_INT)iface;
|
||||||
|
|
||||||
DX_WINDBG_trace();
|
DX_WINDBG_trace();
|
||||||
|
|
||||||
if (iface!=NULL)
|
_SEH_TRY
|
||||||
{
|
{
|
||||||
This->dwIntRefCnt++;
|
This->dwIntRefCnt++;
|
||||||
This->lpLcl->dwLocalRefCnt++;
|
This->lpLcl->dwLocalRefCnt++;
|
||||||
|
@ -63,9 +64,27 @@ Main_DirectDraw_AddRef (LPDIRECTDRAW7 iface)
|
||||||
This->lpLcl->lpGbl->dwRefCnt++;
|
This->lpLcl->lpGbl->dwRefCnt++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return This->dwIntRefCnt;
|
_SEH_HANDLE
|
||||||
|
{
|
||||||
|
}
|
||||||
|
_SEH_END;
|
||||||
|
|
||||||
|
_SEH_TRY
|
||||||
|
{
|
||||||
|
retValue = This->dwIntRefCnt;
|
||||||
|
}
|
||||||
|
_SEH_HANDLE
|
||||||
|
{
|
||||||
|
retValue = 0;
|
||||||
|
}
|
||||||
|
_SEH_END;
|
||||||
|
|
||||||
|
return retValue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
ULONG WINAPI
|
ULONG WINAPI
|
||||||
Main_DirectDraw_Release (LPDIRECTDRAW7 iface)
|
Main_DirectDraw_Release (LPDIRECTDRAW7 iface)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue