From 4035d960954e7e405506228d1c2c17191cf3ff81 Mon Sep 17 00:00:00 2001 From: Adam Johnson Date: Wed, 28 May 2014 16:17:04 -0400 Subject: [PATCH] Crash Fix: normalize filenames in the patcher! There were two different path separator styles that caused plResManager::RemoveSinglePage to do nothing when called from the patcher. D'oh! --- Sources/Plasma/FeatureLib/pfPatcher/pfPatcher.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/Plasma/FeatureLib/pfPatcher/pfPatcher.cpp b/Sources/Plasma/FeatureLib/pfPatcher/pfPatcher.cpp index 844022d9..8e08c3a6 100644 --- a/Sources/Plasma/FeatureLib/pfPatcher/pfPatcher.cpp +++ b/Sources/Plasma/FeatureLib/pfPatcher/pfPatcher.cpp @@ -182,8 +182,8 @@ public: virtual bool Open(const plFileName& filename, const char* mode) { - fFilename = filename; - return plZlibStream::Open(filename, mode); + fFilename = filename.Normalize(); + return plZlibStream::Open(fFilename, mode); } virtual uint32_t Write(uint32_t count, const void* buf)