Hopefully fixed exit bug on some computers
This commit is contained in:
@@ -1084,14 +1084,17 @@ startgame()
|
|||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (FAILED(lpDD->CreateClipper(0,&lpDDClipper,NULL)))
|
if (FAILED(lpDD->CreateClipper(0,&lpDDClipper,NULL)))
|
||||||
{
|
{
|
||||||
|
lpDD->Release();
|
||||||
|
lpDD=NULL;
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (FAILED(lpDDClipper->SetHWnd(0,hMainWindow)))
|
if (FAILED(lpDDClipper->SetHWnd(0,hMainWindow)))
|
||||||
{
|
{
|
||||||
|
lpDD->Release();
|
||||||
|
lpDD=NULL;
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1137,6 +1140,7 @@ startgame()
|
|||||||
|
|
||||||
if ( lpDD->CreateSurface( &ddsd, &DD_CFB, NULL ) != DD_OK )
|
if ( lpDD->CreateSurface( &ddsd, &DD_CFB, NULL ) != DD_OK )
|
||||||
{
|
{
|
||||||
|
DD_CFB->Release();
|
||||||
DD_CFB = NULL;
|
DD_CFB = NULL;
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user