mirror of
https://github.com/reactos/reactos.git
synced 2025-07-28 08:02:15 +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
1 changed files with 21 additions and 2 deletions
|
@ -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,8 +64,26 @@ 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…
Add table
Add a link
Reference in a new issue