Commit 5d5d1a3a authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen
Browse files

utils: Fix win32 build

parent 7f79dbab
......@@ -56,7 +56,8 @@ namespace
bool isDirectory( const std::string& path )
{
#ifdef _WIN32
auto attr = GetFileAttributes( path.c_str() );
auto wpath = charset::ToWide( path.c_str() );
auto attr = GetFileAttributes( wpath.get() );
if ( attr == INVALID_FILE_ATTRIBUTES )
{
DWORD errVal = GetLastError();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment