mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-03 04:13:31 +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:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user