mirror of
https://github.com/reactos/reactos.git
synced 2025-01-05 22:12:46 +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
|
||||
Main_DirectDraw_AddRef (LPDIRECTDRAW7 iface)
|
||||
{
|
||||
ULONG retValue = 0;
|
||||
LPDDRAWI_DIRECTDRAW_INT This = (LPDDRAWI_DIRECTDRAW_INT)iface;
|
||||
|
||||
DX_WINDBG_trace();
|
||||
|
||||
if (iface!=NULL)
|
||||
_SEH_TRY
|
||||
{
|
||||
This->dwIntRefCnt++;
|
||||
This->lpLcl->dwLocalRefCnt++;
|
||||
|
@ -63,9 +64,27 @@ Main_DirectDraw_AddRef (LPDIRECTDRAW7 iface)
|
|||
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
|
||||
Main_DirectDraw_Release (LPDIRECTDRAW7 iface)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue