flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
revolution
You can use GetLastError to see why it failed, but only if it return null.
Otherwise there is no reason it won't work. You probably have something else in there that you omitted to post which is causing the problem. |
|||
![]() |
|
Roman
My mistake.
I found. This work correct. invoke VirtualAlloc,0,1000,MEM_COMMIT,PAGE_READWRITE |
|||
![]() |
|
DimonSoft
Roman wrote:
Roman wrote: invoke VirtualAlloc,0,1000,MEM_COMMIT,PAGE_READWRITE Am I the only one who doesn’t see any difference between two versions, except for the line that exposes the (presumably bad) value in rax? |
|||
![]() |
|
AsmGuru62
I also saw that this is same code.
Also, MSDN recommends to use the combination of flags (MEM_COMMIT or MEM_RESERVE) to access the memory right away. |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.