mirror of
https://github.com/libretro/ppsspp.git
synced 2025-01-31 05:43:14 +00:00
Check for a null pointer when writing video.
This commit is contained in:
parent
afccf2fc88
commit
74f3b81846
@ -32,7 +32,8 @@ void MediaEngine::writeVideoImage(u32 bufferPtr, int frameWidth, int videoPixelM
|
||||
int bpp = modeBpp[videoPixelMode];
|
||||
|
||||
// fake image. To be improved.
|
||||
memset(Memory::GetPointer(bufferPtr), 0xDD, frameWidth * videoHeight_ * bpp);
|
||||
if (Memory::IsValidAddress(bufferPtr))
|
||||
Memory::Memset(bufferPtr, 0xDD, frameWidth * videoHeight_ * bpp);
|
||||
}
|
||||
|
||||
void MediaEngine::feedPacketData(u32 addr, int size)
|
||||
|
Loading…
x
Reference in New Issue
Block a user