Some Android warning fixes

This commit is contained in:
Henrik Rydgard 2015-09-21 20:16:03 +02:00
parent f225a64408
commit 351baa101c
3 changed files with 4 additions and 2 deletions

View File

@ -15,7 +15,9 @@
// Official SVN repository and contact information can be found at
// http://code.google.com/p/dolphin-emu/
#if defined(_MSC_VER)
#pragma warning(disable:4091) // workaround bug in VS2015 headers
#endif
#include "FileUtil.h"
#include "StringUtils.h"

View File

@ -423,7 +423,7 @@ int sceKernelSendMbx(SceUID id, u32 packetAddr)
NativeMbxPacket p;
for (int i = 0, n = m->nmb.numMessages; i < n; i++)
{
Memory::ReadStruct<NativeMbxPacket>(next, &p);
Memory::ReadStructUnchecked<NativeMbxPacket>(next, &p);
if (addPacket->priority < p.priority)
{
if (i == 0)

View File

@ -932,7 +932,7 @@ static bool decodePmpVideo(PSPPointer<SceMpegRingBuffer> ringbuffer, u32 pmpctxA
// joint all blocks into H264Frames
SceMpegLLI lli;
for (int i = 0; i < pmp_nBlocks; i++){
Memory::ReadStruct(pmp_videoSource, &lli);
Memory::ReadStructUnchecked(pmp_videoSource, &lli);
// add source block into pmpframes
pmpframes->add(Memory::GetPointer(lli.pSrc), lli.iSize);
// get next block