git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27603
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
s << _T('=') << value;
// transform to ANSI
s << _T('=') << value;
// transform to ANSI
- const char *p = s.mb_str();
+ const wxWX2MBbuf p = s.mb_str();
// the string will be free()d by libc
char *buf = (char *)malloc(strlen(p) + 1);
// the string will be free()d by libc
char *buf = (char *)malloc(strlen(p) + 1);
return putenv(buf) == 0;
#else // no way to set an env var
return putenv(buf) == 0;
#else // no way to set an env var