Don't use wrong encoding for paths when opening streams on Windows

This commit is contained in:
JosJuice
2017-12-05 21:23:35 +01:00
parent 08da19fc87
commit 9d8a82e1d9
7 changed files with 14 additions and 8 deletions
+2 -1
View File
@@ -58,7 +58,8 @@ MemoryWatcher::~MemoryWatcher()
bool MemoryWatcher::LoadAddresses(const std::string& path)
{
std::ifstream locations(path);
std::ifstream locations;
File::OpenFStream(locations, path, std::ios_base::in);
if (!locations)
return false;