Skip to content

Commit

Permalink
Update main.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
Extravi authored Aug 22, 2024
1 parent 6cc6b6e commit c8c1017
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions bloxshade/installer/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c8c1017

Please sign in to comment.