1
0
mirror of https://github.com/golang/go synced 2024-11-25 06:07:58 -07:00

fix windows build

R=rsc
CC=golang-dev
https://golang.org/cl/4124041
This commit is contained in:
Wei Guangjing 2011-01-28 23:44:37 -05:00 committed by Russ Cox
parent 64c7f70c66
commit 6606995c91

View File

@ -34,7 +34,7 @@ void*
runtime·SysAlloc(uintptr n)
{
mstats.sys += n;
return runtime·stdcall(runtime·VirtualAlloc, 4, v, n, MEM_COMMIT | MEM_RESERVE, PAGE_EXECUTE_READWRITE);
return runtime·stdcall(runtime·VirtualAlloc, 4, nil, n, MEM_COMMIT | MEM_RESERVE, PAGE_EXECUTE_READWRITE);
}
void
@ -55,7 +55,7 @@ runtime·SysFree(void *v, uintptr n)
abort("VirtualFree");
}
void
void*
runtime·SysReserve(void *v, uintptr n)
{
return runtime·stdcall(runtime·VirtualAlloc, 4, v, n, MEM_RESERVE, 0);