mirror of https://github.com/PCSX2/pcsx2.git
FileSystem: Don't pass file access mode into GetWin32Path()
This commit is contained in:
parent
1fd22dcc1c
commit
06be543d32
|
@ -968,7 +968,7 @@ std::FILE* FileSystem::OpenCFile(const char* filename, const char* mode, Error*
|
||||||
{
|
{
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
const std::wstring wfilename = GetWin32Path(filename);
|
const std::wstring wfilename = GetWin32Path(filename);
|
||||||
const std::wstring wmode = GetWin32Path(mode);
|
const std::wstring wmode = StringUtil::UTF8StringToWideString(mode);
|
||||||
if (!wfilename.empty() && !wmode.empty())
|
if (!wfilename.empty() && !wmode.empty())
|
||||||
{
|
{
|
||||||
std::FILE* fp;
|
std::FILE* fp;
|
||||||
|
@ -1060,7 +1060,7 @@ std::FILE* FileSystem::OpenSharedCFile(const char* filename, const char* mode, F
|
||||||
{
|
{
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
const std::wstring wfilename = GetWin32Path(filename);
|
const std::wstring wfilename = GetWin32Path(filename);
|
||||||
const std::wstring wmode = GetWin32Path(mode);
|
const std::wstring wmode = StringUtil::UTF8StringToWideString(mode);
|
||||||
if (wfilename.empty() || wmode.empty())
|
if (wfilename.empty() || wmode.empty())
|
||||||
return nullptr;
|
return nullptr;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue