mirror of https://github.com/davisking/dlib.git
Fixed the code so it compiles on windows.
This commit is contained in:
parent
19c6106a65
commit
b090ef89ef
|
@ -64,7 +64,7 @@ namespace dlib
|
||||||
auto_mutex lock(cwd_mutex);
|
auto_mutex lock(cwd_mutex);
|
||||||
if (SetCurrentDirectory(new_dir.c_str()) == 0)
|
if (SetCurrentDirectory(new_dir.c_str()) == 0)
|
||||||
{
|
{
|
||||||
throw set_current_dir_error("Error changing current dir to '" + new_dir + "'" + GetLastError());
|
throw set_current_dir_error("Error changing current dir to '" + new_dir + "'");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue