1
0
mirror of https://github.com/veracrypt/VeraCrypt.git synced 2025-11-11 02:58:02 -06:00

Use wx-provided wrapper around *getenv()

This commit is contained in:
David Foerster
2016-04-01 08:29:17 +02:00
parent 7d7c09e718
commit af327b49aa

View File

@@ -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;