[win32] Update registry key, fix uint64_t saving

pull/320/head
Hleb Valoshka 2019-07-08 21:21:41 +03:00
parent e7aaee0ec8
commit 2250dd9c23
1 changed files with 2 additions and 2 deletions

View File

@ -88,7 +88,7 @@ static HDC deviceContext;
static bool bReady = false;
static LPTSTR CelestiaRegKey = "Software\\Shatters.net\\Celestia";
static LPTSTR CelestiaRegKey = "Software\\celestia.space\\Celestia1.7-dev";
HINSTANCE appInstance;
HMODULE hRes;
@ -2442,7 +2442,7 @@ static bool SetRegistryInt64(HKEY key, LPCTSTR value, uint64_t intVal)
LONG err = RegSetValueEx(key,
value,
0,
REG_DWORD,
REG_QWORD,
reinterpret_cast<CONST BYTE*>(&intVal),
sizeof(intVal));
return err == ERROR_SUCCESS;