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:
@@ -189,8 +189,8 @@ void wxPathList::AddEnvList (const wxString& envVariable)
|
|||||||
wxT(" :;");
|
wxT(" :;");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
wxChar *val = wxGetenv (WXSTRINGCAST envVariable);
|
wxString val ;
|
||||||
if (val && *val)
|
if (wxGetEnv (WXSTRINGCAST envVariable, &val))
|
||||||
{
|
{
|
||||||
wxChar *s = MYcopystring (val);
|
wxChar *s = MYcopystring (val);
|
||||||
wxChar *save_ptr, *token = wxStrtok (s, PATH_TOKS, &save_ptr);
|
wxChar *save_ptr, *token = wxStrtok (s, PATH_TOKS, &save_ptr);
|
||||||
|
Reference in New Issue
Block a user