Skip to content

Commit

Permalink
Fix HidGuardian enable checkbox
Browse files Browse the repository at this point in the history
  • Loading branch information
nlp80 committed Sep 25, 2018
1 parent d4938d0 commit 7504e98
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion irFFB/hidguardian.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -103,11 +103,12 @@ LRESULT CALLBACK HidGuardian::wndProc(HWND hWnd, UINT message, WPARAM wParam, LP
break;
default:
if (HIWORD(wParam) == BN_CLICKED) {
if ((HWND)lParam == instance->installWnd)
if ((HWND)lParam == instance->installWnd) {
if (instance->hgStatus == STATUS_NOTINSTALLED)
instance->install();
else if (instance->serviceStatus == SERVICE_STOPPED)
instance->repairService();
}
else if ((HWND)lParam == instance->enabledWnd) {
bool oldValue = SendMessage((HWND)lParam, BM_GETCHECK, 0, 0) == BST_CHECKED;
instance->setEnabled(!oldValue);
Expand Down

0 comments on commit 7504e98

Please sign in to comment.