mirror of https://github.com/davisking/dlib.git
Changed the set_current_dir() implementation so that it compiles in visual studio
even when compiling with unicode strings enabled.
This commit is contained in:
parent
5a5ec05153
commit
2c4a44398b
|
@ -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 + "'");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue