From 432c2e226cb7967a0f1679aa56032d10abe05a26 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Fri, 25 Aug 2023 23:33:54 -0500 Subject: [PATCH] Monitor for name changes too to detect deletion of the NvStream subkey --- miss/miss.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/miss/miss.cpp b/miss/miss.cpp index 8453356..85eea43 100644 --- a/miss/miss.cpp +++ b/miss/miss.cpp @@ -912,7 +912,7 @@ DWORD WINAPI GameStreamStateChangeThread(PVOID Context) // Notify the main thread when the GameStream state changes bool lastGameStreamState = IsGameStreamEnabled(); - while ((err = RegNotifyChangeKeyValue(key, true, REG_NOTIFY_CHANGE_LAST_SET, nullptr, false)) == ERROR_SUCCESS) { + while ((err = RegNotifyChangeKeyValue(key, true, REG_NOTIFY_CHANGE_NAME | REG_NOTIFY_CHANGE_LAST_SET, nullptr, false)) == ERROR_SUCCESS) { bool currentGameStreamState = IsGameStreamEnabled(); if (lastGameStreamState != currentGameStreamState) { SetEvent((HANDLE)Context);