mirror of
https://github.com/AppleWin/AppleWin.git
synced 2025-03-04 15:29:51 +00:00
Fix a few medium Coverity defects:
1514566, 1063811
This commit is contained in:
parent
707993b686
commit
c277c5152d
@ -1757,8 +1757,8 @@ void MemInitializeFromSnapshot(void)
|
|||||||
|
|
||||||
if (IsApple2PlusOrClone(GetApple2Type()) && (GetCardMgr().QuerySlot(SLOT3) == CT_VidHD))
|
if (IsApple2PlusOrClone(GetApple2Type()) && (GetCardMgr().QuerySlot(SLOT3) == CT_VidHD))
|
||||||
{
|
{
|
||||||
VidHDCard* vidHD = dynamic_cast<VidHDCard*>(GetCardMgr().GetObj(SLOT3));
|
VidHDCard& vidHD = dynamic_cast<VidHDCard&>(GetCardMgr().GetRef(SLOT3));
|
||||||
memVidHD = vidHD->IsWriteAux() ? memaux : NULL;
|
memVidHD = vidHD.IsWriteAux() ? memaux : NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2026,9 +2026,9 @@ BYTE __stdcall MemSetPaging(WORD programcounter, WORD address, BYTE write, BYTE
|
|||||||
{
|
{
|
||||||
if (GetCardMgr().QuerySlot(SLOT3) == CT_VidHD)
|
if (GetCardMgr().QuerySlot(SLOT3) == CT_VidHD)
|
||||||
{
|
{
|
||||||
VidHDCard* vidHD = dynamic_cast<VidHDCard*>(GetCardMgr().GetObj(SLOT3));
|
VidHDCard& vidHD = dynamic_cast<VidHDCard&>(GetCardMgr().GetRef(SLOT3));
|
||||||
vidHD->VideoIOWrite(programcounter, address, write, value, nExecutedCycles);
|
vidHD.VideoIOWrite(programcounter, address, write, value, nExecutedCycles);
|
||||||
memVidHD = vidHD->IsWriteAux() ? memaux : NULL;
|
memVidHD = vidHD.IsWriteAux() ? memaux : NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -565,13 +565,14 @@ int APIENTRY WinMain(HINSTANCE passinstance, HINSTANCE, LPSTR lpCmdLine, int)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
while (g_bRestart);
|
while (g_bRestart);
|
||||||
|
|
||||||
|
Shutdown();
|
||||||
}
|
}
|
||||||
catch(const std::exception & exception)
|
catch (const std::exception& exception)
|
||||||
{
|
{
|
||||||
ExceptionHandler(exception.what());
|
ExceptionHandler(exception.what());
|
||||||
}
|
}
|
||||||
|
|
||||||
Shutdown();
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user