VM_CAST macro

This commit is contained in:
Nekotekina 2015-07-03 02:11:44 +03:00
parent 8c00dcd02d
commit 721ad404d2
17 changed files with 259 additions and 257 deletions

View file

@ -10,7 +10,7 @@ u64 vfsStreamMemory::Write(const void* src, u64 count)
count = m_size - m_pos;
}
memcpy(vm::get_ptr<void>(vm::cast(m_addr + m_pos)), src, count);
memcpy(vm::get_ptr<void>(VM_CAST(m_addr + m_pos)), src, count);
m_pos += count;
return count;
}
@ -23,7 +23,7 @@ u64 vfsStreamMemory::Read(void* dst, u64 count)
count = m_size - m_pos;
}
memcpy(dst, vm::get_ptr<void>(vm::cast(m_addr + m_pos)), count);
memcpy(dst, vm::get_ptr<void>(VM_CAST(m_addr + m_pos)), count);
m_pos += count;
return count;
}