]> git.saurik.com Git - wxWidgets.git/commitdiff
get the path in windows format for cygwin
authorChris Elliott <biol75@york.ac.uk>
Mon, 2 May 2005 10:22:41 +0000 (10:22 +0000)
committerChris Elliott <biol75@york.ac.uk>
Mon, 2 May 2005 10:22:41 +0000 (10:22 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33927 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/filefn.cpp

index 9250d85d90faa77a2d370ff61e864088d80cc42d..9f9846f969d5acb0288b40c2d48e0e36203863b7 100644 (file)
@@ -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);