memcpy partially replaced

Fixed one of exit issues
This commit is contained in:
Nekotekina 2014-02-26 18:06:13 +04:00
parent 8bd0ee875c
commit 8b952bf98c
16 changed files with 136 additions and 30 deletions

View file

@ -32,7 +32,7 @@ u64 vfsStreamMemory::Write(const void* src, u64 size)
if(!size || !Memory.IsGoodAddr(m_addr + Tell(), size)) return 0;
memcpy(&Memory[m_addr + Tell()], src, size);
Memory.CopyFromReal(m_addr + Tell(), (void*)src, size);
return vfsStream::Write(src, size);
}
@ -46,7 +46,7 @@ u64 vfsStreamMemory::Read(void* dst, u64 size)
if(!size || !Memory.IsGoodAddr(m_addr + Tell(), size)) return 0;
memcpy(dst, &Memory[m_addr + Tell()], size);
Memory.CopyToReal(dst, m_addr + Tell(), size);
return vfsStream::Read(dst, size);
}