git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18085
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
{
#ifdef __WIN16__
const wxChar* ret = wxGetenv(var);
{
#ifdef __WIN16__
const wxChar* ret = wxGetenv(var);
+ if ( !ret )
+ return FALSE;
+
+ if ( value )
- else
- return FALSE;
-#else
+
+ return TRUE;
+#else // Win32
// first get the size of the buffer
DWORD dwRet = ::GetEnvironmentVariable(var, NULL, 0);
if ( !dwRet )
// first get the size of the buffer
DWORD dwRet = ::GetEnvironmentVariable(var, NULL, 0);
if ( !dwRet )
}
bool wxSetEnv(const wxString& var, const wxChar *value)
}
bool wxSetEnv(const wxString& var, const wxChar *value)