Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dlib
Commits
2c4a4439
Commit
2c4a4439
authored
Sep 02, 2011
by
Davis@potato-xp.localnet
Browse files
Changed the set_current_dir() implementation so that it compiles in visual studio
even when compiling with unicode strings enabled.
parent
5a5ec051
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
dlib/misc_api/misc_api_kernel_1.cpp
dlib/misc_api/misc_api_kernel_1.cpp
+1
-1
No files found.
dlib/misc_api/misc_api_kernel_1.cpp
View file @
2c4a4439
...
@@ -77,7 +77,7 @@ namespace dlib
...
@@ -77,7 +77,7 @@ namespace dlib
// need to lock a mutex here because getting and setting the
// need to lock a mutex here because getting and setting the
// current working directory is not thread safe on windows.
// current working directory is not thread safe on windows.
auto_mutex
lock
(
cwd_mutex
());
auto_mutex
lock
(
cwd_mutex
());
if
(
SetCurrentDirectory
(
new_dir
.
c_str
())
==
0
)
if
(
SetCurrentDirectory
A
(
new_dir
.
c_str
())
==
0
)
{
{
throw
set_current_dir_error
(
"Error changing current dir to '"
+
new_dir
+
"'"
);
throw
set_current_dir_error
(
"Error changing current dir to '"
+
new_dir
+
"'"
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment