- bug fix: CTD in endgame when killing Deidrana

- disabled code for CD-ROM check (game was killed every time when USB-Stick was removed)







git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@215 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
lalien
2006-06-09 20:35:59 +00:00
parent df685592e0
commit 005a424314
5 changed files with 17 additions and 19 deletions
+13 -13
View File
@@ -383,20 +383,20 @@ INT32 FAR PASCAL WindowProcedure(HWND hWindow, UINT16 Message, WPARAM wParam, LP
#if defined( JA2 )
case WM_DEVICECHANGE:
{
DEV_BROADCAST_HDR *pHeader = (DEV_BROADCAST_HDR *)lParam;
//DEV_BROADCAST_HDR *pHeader = (DEV_BROADCAST_HDR *)lParam;
//if a device has been removed
if( wParam == DBT_DEVICEREMOVECOMPLETE )
{
//if its a disk
if( pHeader->dbch_devicetype == DBT_DEVTYP_VOLUME )
{
//check to see if the play cd is still in the cdrom
if( !CheckIfGameCdromIsInCDromDrive() )
{
}
}
}
////if a device has been removed
//if( wParam == DBT_DEVICEREMOVECOMPLETE )
//{
// //if its a disk
// if( pHeader->dbch_devicetype == DBT_DEVTYP_VOLUME )
// {
// //check to see if the play cd is still in the cdrom
// if( !CheckIfGameCdromIsInCDromDrive() )
// {
// }
// }
//}
}
break;
#endif