From 9fb01161c366604d8ab9bf5097da9aa75a4ad0dd Mon Sep 17 00:00:00 2001 From: Clownacy Date: Sat, 26 Oct 2019 23:40:32 +0100 Subject: [PATCH] Swap two function calls around This matches the original EXE. I didn't catch it while doing the ASM-accuracy checks because absolute addresses don't match yet. Thanks to Gabe for noticing this. --- src/Main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Main.cpp b/src/Main.cpp index cb44dc8b..d45b8c09 100644 --- a/src/Main.cpp +++ b/src/Main.cpp @@ -366,8 +366,8 @@ int __stdcall WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdL Game(hWnd); // End stuff - EndDirectSound(); EndTextObject(); + EndDirectSound(); EndDirectDraw(hWnd); ReleaseMutex(hMutex);