From 9d8a82e1d9d945d68b17adab1aff34c96aeda003 Mon Sep 17 00:00:00 2001 From: JosJuice Date: Tue, 5 Dec 2017 21:23:35 +0100 Subject: Don't use wrong encoding for paths when opening streams on Windows --- Source/Core/Common/LinearDiskCache.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Source/Core/Common/LinearDiskCache.h') diff --git a/Source/Core/Common/LinearDiskCache.h b/Source/Core/Common/LinearDiskCache.h index fae1dfc3f5..e97f23a11f 100644 --- a/Source/Core/Common/LinearDiskCache.h +++ b/Source/Core/Common/LinearDiskCache.h @@ -124,7 +124,7 @@ public: // failed to open file for reading or bad header // close and recreate file Close(); - m_file.open(filename, ios_base::out | ios_base::trunc | ios_base::binary); + File::OpenFStream(m_file, filename, ios_base::out | ios_base::trunc | ios_base::binary); WriteHeader(); return 0; } -- cgit v1.2.3