Changed the set_current_dir() implementation so that it compiles in visual studio

even when compiling with unicode strings enabled.
parent 5a5ec051
......@@ -77,7 +77,7 @@ namespace dlib
// need to lock a mutex here because getting and setting the
// current working directory is not thread safe on windows.
auto_mutex lock(cwd_mutex());
if (SetCurrentDirectory(new_dir.c_str()) == 0)
if (SetCurrentDirectoryA(new_dir.c_str()) == 0)
{
throw set_current_dir_error("Error changing current dir to '" + new_dir + "'");
}
......
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