diff --git a/src/common/win32/EmuShared.h b/src/common/win32/EmuShared.h index f46a9dca0..e727a9f88 100644 --- a/src/common/win32/EmuShared.h +++ b/src/common/win32/EmuShared.h @@ -196,7 +196,7 @@ class EmuShared : public Mutex // * Debugging flag Accessors // ****************************************************************** void GetDebuggingFlag(bool *value) { Lock(); *value = m_bDebugging; Unlock(); } - void SetDebuggingFlag(const bool *value) { Lock(); m_bDebugging = *value; Unlock(); } + void SetDebuggingFlag(const bool value) { Lock(); m_bDebugging = value; Unlock(); } #ifndef CXBX_LOADER // Temporary usage for cxbx.exe's emu // ****************************************************************** // * Previous Memory Layout value Accessors @@ -246,7 +246,7 @@ class EmuShared : public Mutex // * ClipCursor flag Accessors // ****************************************************************** void GetClipCursorFlag(bool *value) { Lock(); *value = m_bClipCursor; Unlock(); } - void SetClipCursorFlag(const bool *value) { Lock(); m_bClipCursor = *value; Unlock(); } + void SetClipCursorFlag(const bool value) { Lock(); m_bClipCursor = value; Unlock(); } // ****************************************************************** // * Reset specific variables to default for kernel mode. diff --git a/src/core/hle/D3D8/Direct3D9/Direct3D9.cpp b/src/core/hle/D3D8/Direct3D9/Direct3D9.cpp index e4ea32647..9ed5c7c86 100644 --- a/src/core/hle/D3D8/Direct3D9/Direct3D9.cpp +++ b/src/core/hle/D3D8/Direct3D9/Direct3D9.cpp @@ -1966,7 +1966,7 @@ static LRESULT WINAPI EmuMsgProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lPar else if (wParam == VK_F3) { g_bClipCursor = !g_bClipCursor; - g_EmuShared->SetClipCursorFlag(&g_bClipCursor); + g_EmuShared->SetClipCursorFlag(g_bClipCursor); if (g_bClipCursor) { CxbxClipCursor(hWnd); diff --git a/src/gui/WndMain.cpp b/src/gui/WndMain.cpp index 6541142f9..ce77ee43c 100644 --- a/src/gui/WndMain.cpp +++ b/src/gui/WndMain.cpp @@ -2330,7 +2330,7 @@ void WndMain::StartEmulation(HWND hwndParent, DebuggerState LocalDebuggerState / } bool AttachLocalDebugger = (LocalDebuggerState == debuggerOn); - g_EmuShared->SetDebuggingFlag(&AttachLocalDebugger); + g_EmuShared->SetDebuggingFlag(AttachLocalDebugger); /* Main process to generate emulation command line begin. */ // If we are adding more arguments, this is the place to do so.