Update CRT environment in wxSetEnv() for MinGW too.
MinGW uses the same CRT as MSVC so we can use the same _putenv() call for it too. This ensures that wxGetenv() returns the value updated by wxSetEnv() and fixes CrtTestCase::SetGetEnv() unit test when using MinGW. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65746 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -190,8 +190,9 @@ bool wxGetEnv(const wxString& var, wxString* value);
|
||||
environment. wxSetEnv() will always update the first copy, which means that
|
||||
wxGetEnv(), which uses it directly, will always return the expected value
|
||||
after this call. But wxSetEnv() only updates the second copy for some
|
||||
compilers/CRT implementations (currently only MSVC) and so using wxGetenv()
|
||||
(notice the difference in case) may not return the updated value.
|
||||
compilers/CRT implementations (currently only MSVC and MinGW which uses the
|
||||
same MSVC CRT) and so using wxGetenv() (notice the difference in case) may
|
||||
not return the updated value.
|
||||
|
||||
@param var
|
||||
The environment variable to be set, must not contain @c '=' character.
|
||||
|
Reference in New Issue
Block a user