X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/66930b351f32fb5df0a7016624815bb36d9ac5e1..8a6270322b0767fd7f9956f90538ca55d341fab5:/src/msw/utils.cpp diff --git a/src/msw/utils.cpp b/src/msw/utils.cpp index baffd0fc97..ed2e0d224d 100644 --- a/src/msw/utils.cpp +++ b/src/msw/utils.cpp @@ -608,7 +608,7 @@ bool wxGetEnv(const wxString& WXUNUSED_IN_WINCE(var), return false; #else // Win32 // first get the size of the buffer - DWORD dwRet = ::GetEnvironmentVariable(var.wx_str(), NULL, 0); + DWORD dwRet = ::GetEnvironmentVariable(var.t_str(), NULL, 0); if ( !dwRet ) { // this means that there is no such variable @@ -617,7 +617,7 @@ bool wxGetEnv(const wxString& WXUNUSED_IN_WINCE(var), if ( value ) { - (void)::GetEnvironmentVariable(var.wx_str(), + (void)::GetEnvironmentVariable(var.t_str(), wxStringBuffer(*value, dwRet), dwRet); } @@ -635,7 +635,7 @@ bool wxDoSetEnv(const wxString& WXUNUSED_IN_WINCE(var), // no environment variables under CE return false; #else - if ( !::SetEnvironmentVariable(var.wx_str(), value) ) + if ( !::SetEnvironmentVariable(var.t_str(), value) ) { wxLogLastError(_T("SetEnvironmentVariable")); @@ -648,7 +648,7 @@ bool wxDoSetEnv(const wxString& WXUNUSED_IN_WINCE(var), bool wxSetEnv(const wxString& variable, const wxString& value) { - return wxDoSetEnv(variable, value.wx_str()); + return wxDoSetEnv(variable, value.t_str()); } bool wxUnsetEnv(const wxString& variable) @@ -1180,7 +1180,7 @@ wxString wxGetOsDescription() // we can't distinguish between XP 64 and 2003 // as they both are 5.2, so examine the product // type to resolve this ambiguity - if ( wxIsWindowsServer() == true ) + if ( wxIsWindowsServer() == 1 ) { str.Printf(_("Windows Server 2003 (build %lu"), info.dwBuildNumber);