diff options
author | George Hazan <ghazan@miranda.im> | 2021-12-26 16:39:04 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2021-12-26 16:39:04 +0300 |
commit | 62a186697df33c96dc1a6dac0f4dfc38652fb96f (patch) | |
tree | 1437d0906218fae8827aed384026f2b7e656f4ac /utils/mir_options.cpp | |
parent | fcbb395dc7ff3edab972b6d4b27dbbfb3305f5d7 (diff) |
BYTE -> uint8_t
Diffstat (limited to 'utils/mir_options.cpp')
-rw-r--r-- | utils/mir_options.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/utils/mir_options.cpp b/utils/mir_options.cpp index 9569d37a32..cc20034688 100644 --- a/utils/mir_options.cpp +++ b/utils/mir_options.cpp @@ -103,7 +103,7 @@ static void LoadOpt(OptPageControl *ctrl, char *module) wchar_t tmp[1024]; switch (ctrl->type) { case CONTROL_CHECKBOX: - *((BYTE *)ctrl->var) = db_get_b(0, module, ctrl->setting, ctrl->dwDefValue); + *((uint8_t *)ctrl->var) = db_get_b(0, module, ctrl->setting, ctrl->dwDefValue); break; case CONTROL_SPIN: @@ -313,7 +313,7 @@ INT_PTR CALLBACK SaveOptsDlgProc(OptPageControl *controls, int controlsSize, cha switch (ctrl->type) { case CONTROL_CHECKBOX: - db_set_b(0, module, ctrl->setting, (BYTE)IsDlgButtonChecked(hwndDlg, ctrl->nID)); + db_set_b(0, module, ctrl->setting, (uint8_t)IsDlgButtonChecked(hwndDlg, ctrl->nID)); break; case CONTROL_SPIN: @@ -326,7 +326,7 @@ INT_PTR CALLBACK SaveOptsDlgProc(OptPageControl *controls, int controlsSize, cha case CONTROL_RADIO: if (IsDlgButtonChecked(hwndDlg, ctrl->nID)) - db_set_w(0, module, ctrl->setting, (BYTE)ctrl->value); + db_set_w(0, module, ctrl->setting, (uint8_t)ctrl->value); break; case CONTROL_COMBO: @@ -345,7 +345,7 @@ INT_PTR CALLBACK SaveOptsDlgProc(OptPageControl *controls, int controlsSize, cha ListView_GetItem(hwndProtocols, &lvi); char *setting = (char *)lvi.lParam; - db_set_b(0, module, setting, (BYTE)ListView_GetCheckState(hwndProtocols, k)); + db_set_b(0, module, setting, (uint8_t)ListView_GetCheckState(hwndProtocols, k)); } } break; |