mirror of https://github.com/PCSX2/pcsx2.git
Merge pull request #1532 from ssakash/Coverity
PCSX2: Fix a bunch of coverity defects
This commit is contained in:
commit
244bb555f9
|
@ -335,14 +335,13 @@ u32 UpdateVSyncRate()
|
|||
scanlines = SCANLINES_TOTAL_NTSC;
|
||||
break;
|
||||
|
||||
// Falls through to unknown when unidentified mode parameter of SetGsCrt is detected.
|
||||
case GS_VideoMode::Unknown:
|
||||
default:
|
||||
// Falls through to default when unidentified mode parameter of SetGsCrt is detected.
|
||||
// For Release builds, keep using the NTSC timing values when unknown video mode is detected.
|
||||
// Assert will be triggered for debug/dev builds.
|
||||
scanlines = SCANLINES_TOTAL_NTSC;
|
||||
Console.Error("PCSX2-Counters: Unknown video mode detected");
|
||||
|
||||
default:
|
||||
pxAssertDev(false , "Unknown video mode detected via SetGsCrt");
|
||||
}
|
||||
|
||||
|
|
|
@ -304,13 +304,17 @@ VuBaseBlock::VuBaseBlock()
|
|||
type = 0;
|
||||
endpc = 0;
|
||||
cycles = 0;
|
||||
pcode = NULL;
|
||||
id = 0;
|
||||
memzero(pChildJumps);
|
||||
memzero(startregs);
|
||||
memzero(endregs);
|
||||
allocX86Regs = nStartx86 = nEndx86 = -1;
|
||||
prevFlagsOutOfBlock = 0;
|
||||
startpc = 0;
|
||||
vuxy = 0;
|
||||
vuxyz = 0;
|
||||
pendcode = nullptr;
|
||||
pcode = nullptr;
|
||||
}
|
||||
|
||||
#define SUPERVU_STACKSIZE 0x1000
|
||||
|
|
|
@ -433,7 +433,6 @@ Device *InputDeviceManager::GetActiveDevice(InitInfo *info, unsigned int *uid, i
|
|||
(devices[i]->oldVirtualControlState[j] > 31*FULLY_DOWN/32 && devices[i]->virtualControlState[j] < 7*FULLY_DOWN/8))) {
|
||||
continue;
|
||||
}
|
||||
devices[i]->virtualControls[j].uid = devices[i]->virtualControls[j].uid;
|
||||
}
|
||||
else if ((((devices[i]->virtualControls[j].uid>>16)&0xFF) == ABSAXIS)) {
|
||||
if (devices[i]->oldVirtualControlState[j] > 15*FULLY_DOWN/16)
|
||||
|
|
Loading…
Reference in New Issue