Hopefully fixed exit bug on some computers

This commit is contained in:
pagefault
2001-05-21 17:13:46 +00:00
parent e67e6b8244
commit db2d8cd884

View File

@@ -1084,14 +1084,17 @@ startgame()
return FALSE;
}
if (FAILED(lpDD->CreateClipper(0,&lpDDClipper,NULL)))
{
lpDD->Release();
lpDD=NULL;
return FALSE;
}
if (FAILED(lpDDClipper->SetHWnd(0,hMainWindow)))
{
lpDD->Release();
lpDD=NULL;
return FALSE;
}
@@ -1115,7 +1118,7 @@ startgame()
exit(0);
}
if(BitDepth==16&& GBitMask!=0x07E0)
if(BitDepth==16 && GBitMask!=0x07E0)
{
converta=1;
}
@@ -1137,6 +1140,7 @@ startgame()
if ( lpDD->CreateSurface( &ddsd, &DD_CFB, NULL ) != DD_OK )
{
DD_CFB->Release();
DD_CFB = NULL;
return FALSE;
}