diff --git a/src/msw/utils.cpp b/src/msw/utils.cpp index b254d8d47f..7779e616da 100644 --- a/src/msw/utils.cpp +++ b/src/msw/utils.cpp @@ -623,7 +623,7 @@ bool wxDoSetEnv(const wxString& var, const wxChar *value) envstr += '='; if ( value ) envstr += value; - _putenv(envstr); + _tputenv(envstr.t_str()); #else // other compiler if ( !::SetEnvironmentVariable(var.t_str(), value) ) {