diff options
author | George Hazan <ghazan@miranda.im> | 2021-12-26 20:31:39 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2021-12-26 20:31:39 +0300 |
commit | cddcd7483a7c472598af098e759e5d309024f606 (patch) | |
tree | b0a227d6e087c41958cc84d27bc323353248aae5 /plugins/StartupSilence | |
parent | 1039b2829a264280493ba0fa979214fe024dc70c (diff) |
DWORD -> uint32_t
Diffstat (limited to 'plugins/StartupSilence')
-rw-r--r-- | plugins/StartupSilence/src/main.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/plugins/StartupSilence/src/main.cpp b/plugins/StartupSilence/src/main.cpp index e7faaeecee..317e005f15 100644 --- a/plugins/StartupSilence/src/main.cpp +++ b/plugins/StartupSilence/src/main.cpp @@ -30,9 +30,9 @@ HANDLE hTTBarloaded = nullptr; HANDLE Buttons = nullptr;
uint8_t Enabled;
-DWORD delay;
+uint32_t delay;
uint8_t PopUp;
-DWORD PopUpTime;
+uint32_t PopUpTime;
uint8_t TTBButtons;
uint8_t DefSound;
uint8_t DefPopup;
@@ -184,13 +184,13 @@ void LoadSettings() DefEnabled = g_plugin.getByte(DefEnabledComp);
NonStatusAllow = g_plugin.getByte(NonStatusAllowComp);
if (PopUpTime < 1)
- PopUpTime = (DWORD)1;
+ PopUpTime = (uint32_t)1;
if (PopUpTime > 30)
- PopUpTime = (DWORD)30;
+ PopUpTime = (uint32_t)30;
if (delay < 10)
- delay = (DWORD)10;
+ delay = (uint32_t)10;
if (delay > 300)
- delay = (DWORD)300;
+ delay = (uint32_t)300;
g_plugin.setDword(DelayComp, delay);
g_plugin.setDword(PopUpTimeComp, PopUpTime);
}
@@ -311,12 +311,12 @@ static INT_PTR CALLBACK DlgProcOptions(HWND hwndDlg, UINT msg, WPARAM wParam, LP case WM_COMMAND:
switch (LOWORD(wParam)) {
case IDC_SSTIME:
- DWORD min;
+ uint32_t min;
if ((HWND)lParam != GetFocus() || HIWORD(wParam) != EN_CHANGE) return FALSE;
min = GetDlgItemInt(hwndDlg, IDC_SSTIME, nullptr, FALSE);
if (min == 0 && GetWindowTextLength(GetDlgItem(hwndDlg, IDC_SSTIME)))
SendDlgItemMessage(hwndDlg, IDC_SSSPIN, UDM_SETPOS, 0, MAKELONG((short)1, 0));
- delay = db_set_dw(0, MODULENAME, DelayComp, (DWORD)(SendDlgItemMessage(hwndDlg, IDC_SSSPIN, UDM_GETPOS, 0, 0)));
+ delay = db_set_dw(0, MODULENAME, DelayComp, (uint32_t)(SendDlgItemMessage(hwndDlg, IDC_SSSPIN, UDM_GETPOS, 0, 0)));
break;
case IDC_SSPOPUPTIME:
@@ -324,7 +324,7 @@ static INT_PTR CALLBACK DlgProcOptions(HWND hwndDlg, UINT msg, WPARAM wParam, LP min = GetDlgItemInt(hwndDlg, IDC_SSPOPUPTIME, nullptr, FALSE);
if (min == 0 && GetWindowTextLength(GetDlgItem(hwndDlg, IDC_SSPOPUPTIME)))
SendDlgItemMessage(hwndDlg, IDC_SSSPIN2, UDM_SETPOS, 0, MAKELONG((short)1, 0));
- PopUpTime = db_set_dw(0, MODULENAME, PopUpTimeComp, (DWORD)(SendDlgItemMessage(hwndDlg, IDC_SSSPIN2, UDM_GETPOS, 0, 0)));
+ PopUpTime = db_set_dw(0, MODULENAME, PopUpTimeComp, (uint32_t)(SendDlgItemMessage(hwndDlg, IDC_SSSPIN2, UDM_GETPOS, 0, 0)));
break;
case IDC_DELAY:
|