summaryrefslogtreecommitdiff
path: root/shared/standard_paths.cpp
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2014-04-18 17:11:09 +0200
committerDaniel Wilhelm <daniel@wili.li>2014-04-18 17:11:09 +0200
commit9cc790869ed3905c78c7eeeb0bb44f800b3f2af4 (patch)
tree1c085bbf2302be294866c4fc6e0d225f8abbc346 /shared/standard_paths.cpp
parent3.14 (diff)
downloadFreeFileSync-9cc790869ed3905c78c7eeeb0bb44f800b3f2af4.tar.gz
FreeFileSync-9cc790869ed3905c78c7eeeb0bb44f800b3f2af4.tar.bz2
FreeFileSync-9cc790869ed3905c78c7eeeb0bb44f800b3f2af4.zip
3.15
Diffstat (limited to 'shared/standard_paths.cpp')
-rw-r--r--shared/standard_paths.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/shared/standard_paths.cpp b/shared/standard_paths.cpp
index 6f723ef7..e4f87dd6 100644
--- a/shared/standard_paths.cpp
+++ b/shared/standard_paths.cpp
@@ -6,12 +6,12 @@
//
#include "standard_paths.h"
#include <wx/stdpaths.h>
-#include <wx/filename.h>
#include "system_constants.h"
#include "string_conv.h"
using namespace ffs3;
+
bool ffs3::isPortableVersion()
{
#ifdef FFS_WIN
@@ -25,7 +25,7 @@ bool ffs3::isPortableVersion()
const wxString& ffs3::getBinaryDir()
{
- static wxString instance = wxFileName(wxStandardPaths::Get().GetExecutablePath()).GetPath() + zToWx(common::FILE_NAME_SEPARATOR);
+ static wxString instance = zToWx(wxToZ(wxStandardPaths::Get().GetExecutablePath()).BeforeLast(common::FILE_NAME_SEPARATOR) + common::FILE_NAME_SEPARATOR);
return instance;
}
bgstack15