Fixed incorrect parameters for memory deallocation
This commit is contained in:
parent
129a674c2e
commit
a24b8a7586
4 changed files with 11 additions and 9 deletions
|
@ -1,10 +1,4 @@
|
|||
import mem
|
||||
|
||||
main() {
|
||||
text := mem.alloc(4)
|
||||
text[0] = 'H'
|
||||
text[1] = 'i'
|
||||
text[2] = '!'
|
||||
user32.MessageBoxA(0, text, text, 0x00240040)
|
||||
mem.free(text, 4)
|
||||
text := "Hi!\0"
|
||||
user32.MessageBoxA(0, text, text, 0x240040)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue