From 83e56924f735a1bfc6b443a7f2861924ec94f921 Mon Sep 17 00:00:00 2001 From: tomcw Date: Sun, 13 Feb 2022 12:37:33 +0000 Subject: [PATCH] WM_CREATE: remove CpuCreateCriticalSection(), since done in SY6522.Reset() --- source/CPU.cpp | 1 - source/Windows/WinFrame.cpp | 3 --- 2 files changed, 4 deletions(-) diff --git a/source/CPU.cpp b/source/CPU.cpp index b071f260..9e6358c4 100644 --- a/source/CPU.cpp +++ b/source/CPU.cpp @@ -636,7 +636,6 @@ DWORD CpuExecute(const DWORD uCycles, const bool bVideoUpdate) // Called by: // . CpuInitialize() // . SY6522.Reset() -// . FrameCreateWindow() -> WM_CREATE void CpuCreateCriticalSection(void) { if (!g_bCritSectionValid) diff --git a/source/Windows/WinFrame.cpp b/source/Windows/WinFrame.cpp index 814a0476..e78abbea 100644 --- a/source/Windows/WinFrame.cpp +++ b/source/Windows/WinFrame.cpp @@ -1001,9 +1001,6 @@ LRESULT Win32Frame::WndProc( DIMouse::DirectInputInit(window); LogFileOutput("WM_CREATE: DIMouse::DirectInputInit()\n"); - CpuCreateCriticalSection(); // NB. Creates CriticalSection that's needed by MB_Initialize() -- required on a VM restart - LogFileOutput("WM_CREATE: CpuCreateCriticalSection()\n"); - MB_Initialize(); LogFileOutput("WM_CREATE: MB_Initialize()\n");