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
This commit is contained in:
Chris Elliott
2005-05-02 10:22:41 +00:00
parent 1e2aa2f8df
commit aac71f4f44

View 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);