summaryrefslogtreecommitdiff
path: root/zen/long_path_prefix.h
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2014-04-18 17:31:50 +0200
committerDaniel Wilhelm <daniel@wili.li>2014-04-18 17:31:50 +0200
commit570916ddc376b09205125eaaab517561dfead9f0 (patch)
tree309a94f040707c402623e4f9f887346d1b561df7 /zen/long_path_prefix.h
parent6.2 (diff)
downloadFreeFileSync-570916ddc376b09205125eaaab517561dfead9f0.tar.gz
FreeFileSync-570916ddc376b09205125eaaab517561dfead9f0.tar.bz2
FreeFileSync-570916ddc376b09205125eaaab517561dfead9f0.zip
6.3
Diffstat (limited to 'zen/long_path_prefix.h')
-rw-r--r--zen/long_path_prefix.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/zen/long_path_prefix.h b/zen/long_path_prefix.h
index cdff09fa..ae09c5f5 100644
--- a/zen/long_path_prefix.h
+++ b/zen/long_path_prefix.h
@@ -48,8 +48,8 @@ Zstring removeLongPathPrefix(const Zstring& path); //throw()
//################## implementation ##################
//there are two flavors of long path prefix: one for UNC paths, one for regular paths
-const Zstring LONG_PATH_PREFIX = L"\\\\?\\";
-const Zstring LONG_PATH_PREFIX_UNC = L"\\\\?\\UNC";
+const wchar_t LONG_PATH_PREFIX [] = L"\\\\?\\"; //don't use Zstring as global constant: avoid static initialization order problem in global namespace!
+const wchar_t LONG_PATH_PREFIX_UNC[] = L"\\\\?\\UNC"; //
template <size_t maxPath> inline
Zstring applyLongPathPrefixImpl(const Zstring& path)
bgstack15