From f8a221dea252c8dbf716af9e9c6108688383b5c6 Mon Sep 17 00:00:00 2001 From: "XTra.KrazzY" Date: Sat, 13 Jun 2009 00:21:47 +0000 Subject: [PATCH] small thread fix git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3416 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/Core/Src/HW/EXI_DeviceMemoryCard.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Source/Core/Core/Src/HW/EXI_DeviceMemoryCard.cpp b/Source/Core/Core/Src/HW/EXI_DeviceMemoryCard.cpp index edc41bd855..484ddd1fb5 100644 --- a/Source/Core/Core/Src/HW/EXI_DeviceMemoryCard.cpp +++ b/Source/Core/Core/Src/HW/EXI_DeviceMemoryCard.cpp @@ -174,6 +174,13 @@ bool CEXIMemoryCard::IsPresent() void CEXIMemoryCard::SetCS(int cs) { + // So that memory card won't be invalidated during flushing + if(flushThread) + { + delete flushThread; + flushThread = NULL; + } + if (cs) // not-selected to selected m_uPosition = 0; else