fix missing tray icon bug

This commit is contained in:
2022-07-22 01:47:05 +02:00
parent ecfb2f206d
commit b986bfde39
5 changed files with 20 additions and 26 deletions

View File

@@ -74,7 +74,7 @@ void setAutostart(bool newValue)
HRESULT hr;
HKEY runKey = NULL;
HKEY runKey = nullptr;
hr = RegCreateKey(HKEY_CURRENT_USER, L"SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run", &runKey);
if (isError(hr, "Failed to find/create autostart run key: ")) return;