From c8c1017ae23508470e0c4b77d1be92e01f2af9e5 Mon Sep 17 00:00:00 2001 From: Extravi <98912029+Extravi@users.noreply.github.com> Date: Thu, 22 Aug 2024 17:58:08 -0400 Subject: [PATCH] Update main.cpp --- bloxshade/installer/src/main.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/bloxshade/installer/src/main.cpp b/bloxshade/installer/src/main.cpp index 943e2cb..6df938c 100644 --- a/bloxshade/installer/src/main.cpp +++ b/bloxshade/installer/src/main.cpp @@ -723,13 +723,9 @@ int WINAPI wWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPWSTR lpCmdLi for (unsigned int settingId : settingIds) { result = NvAPI_DRS_RestoreProfileDefaultSetting(pSession, pProfile, settingId); - if (result == 0xffffff60) { - // setting is already at default - std::cout << "setting ID " << std::hex << settingId << " is already set to default." << std::endl; - } - else if (result != 0) { + if (result != 0) { // other error occurred - std::cout << "NvAPI_DRS_RestoreProfileDefaultSetting failed for setting ID " << std::hex << settingId << " with error code " << result << std::endl; + std::cout << "setting ID " << std::hex << settingId << " with return code " << result << " is already set to default." << std::endl; } else { // success