pcsx2: be sure that variables are initialized

This commit is contained in:
Gregory Hainaut 2014-07-12 16:03:06 +02:00
parent c6c6171841
commit afc4f3386a
3 changed files with 4 additions and 2 deletions

View File

@ -397,7 +397,7 @@ s32 CALLBACK ISOreadSector(u8* tempbuffer, u32 lsn, int mode)
u8 *pbuffer = cdbuffer;
int psize;
int psize = 0;
switch (mode)
{

View File

@ -478,6 +478,8 @@ mem32_t __fastcall iopHwRead32_Page8( u32 addr )
else if( masked_addr >= pgmsk(HW_FW_START) && masked_addr <= pgmsk(HW_FW_END) )
{
ret = FWread32( addr );
} else {
ret = psxHu32(addr);
}
}
else ret = psxHu32(addr);

View File

@ -265,7 +265,7 @@ static u8* GetIndirectDispatcherPtr( int mode, int operandsize, int sign = 0 )
//
static void DynGen_IndirectDispatch( int mode, int bits, bool sign = false )
{
int szidx;
int szidx = 0;
switch( bits )
{
case 8: szidx=0; break;