Fix a potential compile error on Windows

This commit is contained in:
Alex Szpakowski
2021-01-01 16:32:34 -04:00
parent f151190548
commit 6e6292ccb2
+1 -1
View File
@@ -131,7 +131,7 @@ static bool createDirectoryRaw(const std::string &path)
{
#ifdef LOVE_WINDOWS
std::wstring wpath = to_widestr(path);
return CreateDirectoryW(wpath, nullptr) != 0;
return CreateDirectoryW(wpath.c_str(), nullptr) != 0;
#else
return mkdir(path.c_str(), S_IRWXU) == 0;
#endif