From b2831ac2fd169ca55f80a738bea15e3dbd97b7cb Mon Sep 17 00:00:00 2001 From: "Admiral H. Curtiss" Date: Mon, 17 Aug 2015 23:10:29 +0200 Subject: [PATCH] FolderMemoryCard: Fix Linux compile error. --- pcsx2/gui/MemoryCardFolder.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pcsx2/gui/MemoryCardFolder.cpp b/pcsx2/gui/MemoryCardFolder.cpp index c5cfd1767e..834ea796f3 100644 --- a/pcsx2/gui/MemoryCardFolder.cpp +++ b/pcsx2/gui/MemoryCardFolder.cpp @@ -1415,7 +1415,9 @@ void FileAccessHelper::CloseFileHandle( wxFFile* file, const MemoryCardFileEntry if ( entry != nullptr ) { wxFileName fn( file->GetName() ); - fn.SetTimes( nullptr, &entry->entry.data.timeModified.ToWxDateTime(), &entry->entry.data.timeCreated.ToWxDateTime() ); + wxDateTime modified = entry->entry.data.timeModified.ToWxDateTime(); + wxDateTime created = entry->entry.data.timeCreated.ToWxDateTime(); + fn.SetTimes( nullptr, &modified, &created ); } delete file;