Fixed incorrect const values
This commit is contained in:
7
lib/mem/free_windows.q
Normal file
7
lib/mem/free_windows.q
Normal file
@ -0,0 +1,7 @@
|
||||
extern kernel32 {
|
||||
VirtualFree(address *any, size uint, type uint32) -> bool
|
||||
}
|
||||
|
||||
free(address []any) -> int {
|
||||
return kernel32.VirtualFree(address-8, len(address)+8, mem.decommit)
|
||||
}
|
Reference in New Issue
Block a user