Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Change Win32 ExitProcess to C func exit #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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` ?
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant