From 6e6292ccb2e57b95335e8d2d5893486b8e8f492e Mon Sep 17 00:00:00 2001 From: Alex Szpakowski Date: Fri, 1 Jan 2021 16:32:34 -0400 Subject: [PATCH] Fix a potential compile error on Windows --- src/modules/filesystem/Filesystem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/filesystem/Filesystem.cpp b/src/modules/filesystem/Filesystem.cpp index a44703308..116dab199 100644 --- a/src/modules/filesystem/Filesystem.cpp +++ b/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