From 49034d2d9d77f31a6670a7579069336b6a925eb8 Mon Sep 17 00:00:00 2001 From: theboy181 Date: Mon, 13 Apr 2015 22:16:05 -0700 Subject: [PATCH] Update Ini File Class.cpp Fix Project64.cfg from getting corrupted when moving the window around. https://github.com/project64/project64/issues/225 --- Source/Common/Ini File Class.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Source/Common/Ini File Class.cpp b/Source/Common/Ini File Class.cpp index 5a91ecf63..763a1f468 100644 --- a/Source/Common/Ini File Class.cpp +++ b/Source/Common/Ini File Class.cpp @@ -738,6 +738,7 @@ void CIniFileBase::SaveNumber ( LPCTSTR lpSectionName, LPCTSTR lpKeyName, ULONG void CIniFileBase::FlushChanges (void) { + CGuard Guard(m_CS); SaveCurrentSection(); }