Skip to content

Commit 3c7758d

Browse files
committed
#9a: fix
1 parent 363720a commit 3c7758d

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

dllmain.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,10 @@ Fn_BreakpadWriteDump g_pfnBreakpadWriteDump = nullptr;
8484

8585
uintp g_CtxCounter = 0;
8686

87+
// Forward declarations for SteamStub
88+
static bool g_bSteamStubEnabled = false;
89+
static void SteamStub_Init();
90+
8791
// ============================================================
8892
// SteamInternal_ContextInit
8993
// ============================================================
@@ -788,8 +792,6 @@ void CDumpHandler::WriteDump(DWORD exceptionCode, _EXCEPTION_POINTERS* pExceptio
788792
#include "include/MinHook.h"
789793
#include <atomic>
790794

791-
static bool g_bSteamStubEnabled = false;
792-
793795
static std::atomic<uint32_t> g_SteamStubCount{ 0 };
794796
static constexpr uint32_t STEAM_STUB_MAX_COUNT = 1;
795797
static constexpr uint8_t STEAM_STUB_SIGNATURE[] = { 0x44, 0x0F, 0xB6, 0xF8, 0x3C, 0x30, 0x0F, 0x84 };

0 commit comments

Comments
 (0)