From aac71f4f4456577a0ec6cc70fa18596e6cdf6aee Mon Sep 17 00:00:00 2001 From: Chris Elliott Date: Mon, 2 May 2005 10:22:41 +0000 Subject: [PATCH] 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 --- src/common/filefn.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.45.2