summaryrefslogtreecommitdiff
path: root/shared/dst_hack.cpp
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2014-04-18 17:13:13 +0200
committerDaniel Wilhelm <daniel@wili.li>2014-04-18 17:13:13 +0200
commit7f23ee90fd545995a29e2175f15e8b97e59ca67a (patch)
treef8d0afac51995032e58b9a475ccbbc73ba207baf /shared/dst_hack.cpp
parent3.19 (diff)
downloadFreeFileSync-7f23ee90fd545995a29e2175f15e8b97e59ca67a.tar.gz
FreeFileSync-7f23ee90fd545995a29e2175f15e8b97e59ca67a.tar.bz2
FreeFileSync-7f23ee90fd545995a29e2175f15e8b97e59ca67a.zip
3.20
Diffstat (limited to 'shared/dst_hack.cpp')
-rw-r--r--shared/dst_hack.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/shared/dst_hack.cpp b/shared/dst_hack.cpp
index a64df448..d52a335f 100644
--- a/shared/dst_hack.cpp
+++ b/shared/dst_hack.cpp
@@ -28,8 +28,8 @@ Zstring getVolumeName(const Zstring& filename)
// volumePath += FILE_NAME_SEPARATOR;
Zstring nameFmt = removeLongPathPrefix(filename); //throw()
- if (!nameFmt.EndsWith(Zstr("\\")))
- nameFmt += Zstr("\\"); //GetVolumeInformation expects trailing backslash
+ if (!endsWith(nameFmt, FILE_NAME_SEPARATOR))
+ nameFmt += FILE_NAME_SEPARATOR; //GetVolumeInformation expects trailing backslash
if (nameFmt.StartsWith(Zstr("\\\\"))) //UNC path: "\\ComputerName\SharedFolder\"
{
@@ -58,8 +58,6 @@ Zstring getVolumeName(const Zstring& filename)
bool dst::isFatDrive(const Zstring& fileName) //throw()
{
- using namespace zen;
-
const size_t BUFFER_SIZE = MAX_PATH + 1;
wchar_t fsName[BUFFER_SIZE];
bgstack15