Browse Source

Fix a potential compile error on Windows

Alex Szpakowski 4 years ago
parent
commit
6e6292ccb2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/modules/filesystem/Filesystem.cpp

+ 1 - 1
src/modules/filesystem/Filesystem.cpp

@@ -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