mirror of
https://github.com/love2d/love.git
synced 2026-08-17 19:23:38 +02:00
Fix a potential compile error on Windows
This commit is contained in:
@@ -131,7 +131,7 @@ static bool createDirectoryRaw(const std::string &path)
|
|||||||
{
|
{
|
||||||
#ifdef LOVE_WINDOWS
|
#ifdef LOVE_WINDOWS
|
||||||
std::wstring wpath = to_widestr(path);
|
std::wstring wpath = to_widestr(path);
|
||||||
return CreateDirectoryW(wpath, nullptr) != 0;
|
return CreateDirectoryW(wpath.c_str(), nullptr) != 0;
|
||||||
#else
|
#else
|
||||||
return mkdir(path.c_str(), S_IRWXU) == 0;
|
return mkdir(path.c_str(), S_IRWXU) == 0;
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user