From f4c181dd7099fddef4cf2d76b5d5517b130eb2ad Mon Sep 17 00:00:00 2001 From: Anders Jenbo Date: Fri, 10 Apr 2020 23:11:06 +0200 Subject: [PATCH] Correct size of app_fatal The call to ExitProcess(1) can be seen in the original ASM, but still isen't emitted by the compiler for our code :/ --- Source/appfat.cpp | 1 + comparer-config/diablo.toml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/appfat.cpp b/Source/appfat.cpp index 3a718c08b..c319e04d2 100644 --- a/Source/appfat.cpp +++ b/Source/appfat.cpp @@ -484,6 +484,7 @@ void __cdecl app_fatal(const char *pszFmt, ...) init_cleanup(FALSE); exit(1); + ExitProcess(1); } void MsgBox(const char *pszFmt, va_list va) diff --git a/comparer-config/diablo.toml b/comparer-config/diablo.toml index d021375de..e94444af4 100644 --- a/comparer-config/diablo.toml +++ b/comparer-config/diablo.toml @@ -30,7 +30,7 @@ size = 0xD [[func]] name = "app_fatal" addr = 0x401947 -size = 0x24 +size = 0x2E [[func]] name = "MsgBox"