Browse Source

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!
Adam Johnson 10 years ago
parent
commit
4035d96095
  1. 4
      Sources/Plasma/FeatureLib/pfPatcher/pfPatcher.cpp

4
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)

Loading…
Cancel
Save