Rename the get-memory-pointer functions to make it clear where CPU exceptions can happen.

This commit is contained in:
Henrik Rydgård committed 2026-08-12 14:06:16 +02:00
1 parent e9a3449ede
commit c5e4d0d90d
53 files changed
+224 -224

No files matched your search

+2 -2
View File
@@ -36,8 +36,8 @@ static int CommonDecompress(int windowBits, u32 OutBuffer, int OutBufferLength,
}
z_stream stream{};
u8 *outBufferPtr = Memory::GetPointerWrite(OutBuffer);
stream.next_in = (Bytef*)Memory::GetPointer(InBuffer);
u8 *outBufferPtr = Memory::GetPointerWriteOrException(OutBuffer);
stream.next_in = (Bytef*)Memory::GetPointerOrException(InBuffer);
// We don't know the available length, just let it use as much as it wants.
stream.avail_in = (uInt)Memory::ClampValidSizeAt(InBuffer, Memory::g_MemorySize);
stream.next_out = outBufferPtr;