diff options
author | brad kittenbrink <brad@lindenlab.com> | 2009-07-08 16:30:24 -0700 |
---|---|---|
committer | brad kittenbrink <brad@lindenlab.com> | 2009-07-08 16:30:24 -0700 |
commit | 4fc52d1341a778a6e15d6f902d0a39236c319094 (patch) | |
tree | b92d5619c42ebb4fa1e80be24c302ac8601c37a4 /indra/llcommon | |
parent | 429bd9b55c54164d133276ed5b1fd54e565eb1b4 (diff) |
Fix for errors intializing the locale on unrecognized versions of windows (like windows 7)
Diffstat (limited to 'indra/llcommon')
-rw-r--r-- | indra/llcommon/llsys.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/indra/llcommon/llsys.cpp b/indra/llcommon/llsys.cpp index 4d03c4d40d..127baa737d 100644 --- a/indra/llcommon/llsys.cpp +++ b/indra/llcommon/llsys.cpp @@ -128,8 +128,16 @@ LLOSInfo::LLOSInfo() : mOSStringSimple = "Microsoft Windows Vista "; else mOSStringSimple = "Microsoft Windows Vista Server "; } + else if(osvi.dwMajorVersion == 6 && osvi.dwMinorVersion == 1) + { + if(osvi.wProductType == VER_NT_WORKSTATION) + mOSStringSimple = "Microsoft Windows 7 "; + else mOSStringSimple = "Microsoft Windows 7 Server "; + } else // Use the registry on early versions of Windows NT. { + mOSStringSimple = "Microsoft Windows (unrecognized) "; + HKEY hKey; WCHAR szProductType[80]; DWORD dwBufLen; |