const void* -> void* in memDealloc and memProtect for Windows too

develop
Kelly Martin 2012-11-16 13:44:38 -06:00
parent fc1a1e1f0e
commit a6fba3daf2
1 changed files with 2 additions and 2 deletions

@ -484,14 +484,14 @@ void* Process::memAlloc(const int length)
return ret;
}
int Process::memDealloc(const void *ptr, const int length)
int Process::memDealloc(void *ptr, const int length)
{
// can only free the whole region at once
// vfree returns 0 on error
return !VirtualFree(ptr, 0, MEM_RELEASE)
}
int Process::memProtect(const void *ptr, const int length, const int prot)
int Process::memProtect(void *ptr, const int length, const int prot)
{
int prot_native = 0;
int old_prot = 0;