diff options
author | B. Stack <bgstack15@gmail.com> | 2021-12-06 13:37:35 +0000 |
---|---|---|
committer | B. Stack <bgstack15@gmail.com> | 2021-12-06 13:37:35 +0000 |
commit | f142f32c8d2b53f305cb72cb5953e3394d6a6243 (patch) | |
tree | 2999df8f80b28d0f7f60a84b7f75d613e280bba1 /zen/resolve_path.cpp | |
parent | Merge branch 'b11.14' into 'master' (diff) | |
parent | add upstream 11.15 (diff) | |
download | FreeFileSync-f142f32c8d2b53f305cb72cb5953e3394d6a6243.tar.gz FreeFileSync-f142f32c8d2b53f305cb72cb5953e3394d6a6243.tar.bz2 FreeFileSync-f142f32c8d2b53f305cb72cb5953e3394d6a6243.zip |
Merge branch 'b11.15' into 'master'11.15
add upstream 11.15
See merge request opensource-tracking/FreeFileSync!39
Diffstat (limited to 'zen/resolve_path.cpp')
-rw-r--r-- | zen/resolve_path.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/zen/resolve_path.cpp b/zen/resolve_path.cpp index 4eab76ee..0a45646e 100644 --- a/zen/resolve_path.cpp +++ b/zen/resolve_path.cpp @@ -8,6 +8,7 @@ #include "time.h" #include "thread.h" #include "file_access.h" +#include "file_path.h" #include <stdlib.h> //getenv() #include <unistd.h> //getcwd() @@ -44,7 +45,7 @@ Zstring resolveRelativePath(const Zstring& relativePath) assert(runningOnMainThread()); /* MSDN: "Multithreaded applications and shared library code should not use the GetFullPathName function and should avoid using relative path names. The current directory state written by the - SetCurrentDirectory function is stored as a global variable in each process, + SetCurrentDirectory function is stored as a global variable in each process, therefore multithreaded applications cannot reliably use this value without possible data corruption from other threads, [...]" => Just plain wrong, there is no data corruption. What MSDN really means: GetFullPathName() is *perfectly* thread-safe, but depends |