From: Chris Elliott <biol75@york.ac.uk>
Date: Mon, 2 May 2005 10:22:41 +0000 (+0000)
Subject: get the path in windows format for cygwin
X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/aac71f4f4456577a0ec6cc70fa18596e6cdf6aee

get the path in windows format for cygwin


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33927 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
---

diff --git a/src/common/filefn.cpp b/src/common/filefn.cpp
index 9250d85d90..9f9846f969 100644
--- a/src/common/filefn.cpp
+++ b/src/common/filefn.cpp
@@ -189,8 +189,8 @@ void wxPathList::AddEnvList (const wxString& envVariable)
         wxT(" :;");
 #endif
 
-    wxChar *val = wxGetenv (WXSTRINGCAST envVariable);
-    if (val && *val)
+    wxString val ;    
+    if (wxGetEnv (WXSTRINGCAST envVariable, &val))
     {
         wxChar *s = MYcopystring (val);
         wxChar *save_ptr, *token = wxStrtok (s, PATH_TOKS, &save_ptr);