Tiny source tweaks

Fixing some errors in the C runtime and making the main() formatting
more similar to everything else.
This commit is contained in:
KeybadeBlox 2026-02-14 23:12:06 -05:00
parent 84c165a0af
commit d81bd646fa
2 changed files with 6 additions and 5 deletions

View file

@ -4,7 +4,7 @@ Like other CRT code, there's some magic here with symbols that get special
treatment from the compiler and linker. treatment from the compiler and linker.
*/ */
#include "Win32.hpp" #include "../Win32.hpp"
// Every program is supposed to have a main(), so we can just assume its // Every program is supposed to have a main(), so we can just assume its
@ -29,4 +29,5 @@ The linker automatically sets this function to the entrypoint.
DWORD _mainXapiStartup(LPVOID const lpThreadParameter) { DWORD _mainXapiStartup(LPVOID const lpThreadParameter) {
/* Runs some initialization and then calls main() */ /* Runs some initialization and then calls main() */
main(); main();
return 0;
} }