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:
Davis@potato-xp.localnet 2011-09-02 22:00:22 -04:00
parent 5a5ec05153
commit 2c4a44398b
1 changed files with 1 additions and 1 deletions

View File

@ -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 + "'");
}