Skip to content

Commit 7504e98

Browse files
committed
Fix HidGuardian enable checkbox
1 parent d4938d0 commit 7504e98

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

irFFB/hidguardian.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,11 +103,12 @@ LRESULT CALLBACK HidGuardian::wndProc(HWND hWnd, UINT message, WPARAM wParam, LP
103103
break;
104104
default:
105105
if (HIWORD(wParam) == BN_CLICKED) {
106-
if ((HWND)lParam == instance->installWnd)
106+
if ((HWND)lParam == instance->installWnd) {
107107
if (instance->hgStatus == STATUS_NOTINSTALLED)
108108
instance->install();
109109
else if (instance->serviceStatus == SERVICE_STOPPED)
110110
instance->repairService();
111+
}
111112
else if ((HWND)lParam == instance->enabledWnd) {
112113
bool oldValue = SendMessage((HWND)lParam, BM_GETCHECK, 0, 0) == BST_CHECKED;
113114
instance->setEnabled(!oldValue);

0 commit comments

Comments
 (0)