[ 1585253 ] Various important bugfixes to wxFileName::Normalize
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42471 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -369,7 +369,12 @@ wxString wxExpandEnvVars(const wxString& str)
|
||||
#ifdef __WXWINCE__
|
||||
const wxChar *pszValue = NULL;
|
||||
#else
|
||||
const wxChar *pszValue = wxGetenv(strVarName);
|
||||
// NB: use wxGetEnv instead of wxGetenv as otherwise variables
|
||||
// set through wxSetEnv may not be read correctly!
|
||||
const wxChar *pszValue = NULL;
|
||||
wxString tmp;
|
||||
if (wxGetEnv(strVarName, &tmp))
|
||||
pszValue = tmp;
|
||||
#endif
|
||||
if ( pszValue != NULL ) {
|
||||
strResult += pszValue;
|
||||
|
Reference in New Issue
Block a user