Clean up Memory_Block logic

This commit is contained in:
gingerBill
2021-10-05 16:25:30 +01:00
parent 9d9ec192f1
commit ccc4c641c4
4 changed files with 136 additions and 91 deletions
+1 -1
View File
@@ -59,7 +59,7 @@ foreign Kernel32 {
_reserve :: proc(size: uint) -> (data: []byte, err: Allocator_Error) {
result := VirtualAlloc(nil, size, MEM_RELEASE, PAGE_READWRITE)
result := VirtualAlloc(nil, size, MEM_RESERVE, PAGE_READWRITE)
if result == nil {
err = .Out_Of_Memory
return