Skip to content

Conversation

kawaii-ghost
Copy link

@kawaii-ghost kawaii-ghost commented Apr 16, 2023

Calling C runtime function must also terminated by C runtime itself (exit). Calling printf and then call ExitProcess without CRT function leads to hang because that does not let the C runtime terminate as gracefully.

First argument also passed in RCX, RAX is used as return value. Did you mean add rsp, 32; pop rbp; xor eax, eax; ret ?

Calling C runtime function must also terminated by C runtime itself (exit).
Calling printf and then call ExitProcess without CRT function leads to hang because that does not let the C runtime terminate as
gracefully.

First argument also passed in `RCX`, `RAX` is used as return value.
Did you mean `add rsp, 40; xor eax, eax; ret` ?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant