VeraCrypt
aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Foerster <david.foerster@informatik.hu-berlin.de>2016-04-01 06:29:17 (GMT)
committerDavid Foerster <david.foerster@informatik.hu-berlin.de>2016-04-01 06:29:17 (GMT)
commitaf327b49aa52f5f3efc135a5da1c579b327029ce (patch)
treee6d11d8602aa3e472b837291c547ab4c9192fac5
parent7d7c09e7184214f4e05621dfc467f6e117b1411f (diff)
downloadVeraCrypt-af327b49aa52f5f3efc135a5da1c579b327029ce.zip
VeraCrypt-af327b49aa52f5f3efc135a5da1c579b327029ce.tar.gz
Use wx-provided wrapper around *getenv()
-rw-r--r--src/Main/Application.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/Main/Application.cpp b/src/Main/Application.cpp
index cf71620..ca9db0b 100644
--- a/src/Main/Application.cpp
+++ b/src/Main/Application.cpp
@@ -33,15 +33,10 @@ namespace VeraCrypt
wxString *GetXdgConfigPath ()
{
+ const wxChar *xdgConfig = wxGetenv(wxT("XDG_CONFIG_HOME"));
wxString *configDir;
- #ifdef TC_WINDOWS
- const wchar_t *xdgConfig = ::_wgetenv(L"XDG_CONFIG_HOME");
- #else
- const char *xdgConfig = ::getenv("XDG_CONFIG_HOME");
- #endif
-
- if (xdgConfig && *xdgConfig)
+ if (!wxIsEmpty(xdgConfig))
{
configDir = new wxString (xdgConfig);
//wcerr << L"XDG_CONFIG_HOME=" << *configDir << endl;