mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-11-17 04:51:48 +00:00
Changed: Minor changes
This commit is contained in:
parent
b0b9e18677
commit
6b399be0f6
1 changed files with 3 additions and 3 deletions
|
@ -231,11 +231,11 @@ bool CSystemUtils::supportUnicode()
|
||||||
{
|
{
|
||||||
init = true;
|
init = true;
|
||||||
#ifdef NL_OS_WINDOWS
|
#ifdef NL_OS_WINDOWS
|
||||||
OSVERSIONINFO osvi;
|
OSVERSIONINFOA osvi;
|
||||||
osvi.dwOSVersionInfoSize = sizeof(OSVERSIONINFO);
|
osvi.dwOSVersionInfoSize = sizeof(OSVERSIONINFO);
|
||||||
|
|
||||||
// get Windows version
|
// get Windows version
|
||||||
if (GetVersionEx(&osvi))
|
if (GetVersionExA(&osvi))
|
||||||
{
|
{
|
||||||
if (osvi.dwPlatformId == VER_PLATFORM_WIN32_NT)
|
if (osvi.dwPlatformId == VER_PLATFORM_WIN32_NT)
|
||||||
{
|
{
|
||||||
|
@ -347,7 +347,7 @@ bool CSystemUtils::setRegKey(const string &ValueName, const string &Value)
|
||||||
HKEY hkey;
|
HKEY hkey;
|
||||||
DWORD dwDisp;
|
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);
|
ucstring utf16Value = ucstring::makeFromUtf8(Value);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue