From 04554fddab4a717a0e10bc67fb4ff28b9a12ea6f Mon Sep 17 00:00:00 2001 From: kervala Date: Tue, 23 Feb 2016 16:57:34 +0100 Subject: [PATCH] Changed: Minor changes --- code/nel/src/misc/system_utils.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/code/nel/src/misc/system_utils.cpp b/code/nel/src/misc/system_utils.cpp index 4b59817e0..de23db001 100644 --- a/code/nel/src/misc/system_utils.cpp +++ b/code/nel/src/misc/system_utils.cpp @@ -231,11 +231,11 @@ bool CSystemUtils::supportUnicode() { init = true; #ifdef NL_OS_WINDOWS - OSVERSIONINFO osvi; + OSVERSIONINFOA osvi; osvi.dwOSVersionInfoSize = sizeof(OSVERSIONINFO); // get Windows version - if (GetVersionEx(&osvi)) + if (GetVersionExA(&osvi)) { if (osvi.dwPlatformId == VER_PLATFORM_WIN32_NT) { @@ -347,7 +347,7 @@ bool CSystemUtils::setRegKey(const string &ValueName, const string &Value) HKEY hkey; DWORD dwDisp; - if (RegCreateKeyExW(HKEY_CURRENT_USER, utf8ToWide(RootKey), 0, L"", REG_OPTION_NON_VOLATILE, KEY_ALL_ACCESS, NULL, &hkey, &dwDisp) == ERROR_SUCCESS) + if (RegCreateKeyExW(HKEY_CURRENT_USER, utf8ToWide(RootKey), 0, NULL, REG_OPTION_NON_VOLATILE, KEY_ALL_ACCESS, NULL, &hkey, &dwDisp) == ERROR_SUCCESS) { ucstring utf16Value = ucstring::makeFromUtf8(Value);