From cddcd7483a7c472598af098e759e5d309024f606 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 26 Dec 2021 20:31:39 +0300 Subject: DWORD -> uint32_t --- plugins/BossKeyPlus/src/BossKey.cpp | 6 +++--- plugins/BossKeyPlus/src/BossKeyIdle.cpp | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'plugins/BossKeyPlus/src') diff --git a/plugins/BossKeyPlus/src/BossKey.cpp b/plugins/BossKeyPlus/src/BossKey.cpp index 45bb89b1ff..30f3332fe7 100644 --- a/plugins/BossKeyPlus/src/BossKey.cpp +++ b/plugins/BossKeyPlus/src/BossKey.cpp @@ -70,7 +70,7 @@ static BOOL IsAeroMode() INT_PTR CALLBACK DlgStdInProc(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam) { - static DWORD dwOldIcon = 0; + static uint32_t dwOldIcon = 0; HICON hIcon = nullptr; UINT uid; @@ -173,7 +173,7 @@ BOOL CALLBACK EnumWindowsProc(HWND hWnd, LPARAM) else if (!mir_wstrcmp(szTemp, L"PopupWnd2")) // destroy opened popups PUDeletePopup(hWnd); else { - DWORD threadId = GetWindowThreadProcessId(hWnd, 0); + uint32_t threadId = GetWindowThreadProcessId(hWnd, 0); if (threadId != GetCurrentThreadId()) return false; @@ -439,7 +439,7 @@ INT_PTR BossKeyHideMiranda(WPARAM, LPARAM) // for service :) static wchar_t* HotkeyVkToName(uint16_t vkKey) { static wchar_t buf[32] = { 0 }; - DWORD code = MapVirtualKey(vkKey, 0) << 16; + uint32_t code = MapVirtualKey(vkKey, 0) << 16; switch (vkKey) { case 0: diff --git a/plugins/BossKeyPlus/src/BossKeyIdle.cpp b/plugins/BossKeyPlus/src/BossKeyIdle.cpp index 19d07b5119..53ec9d366c 100644 --- a/plugins/BossKeyPlus/src/BossKeyIdle.cpp +++ b/plugins/BossKeyPlus/src/BossKeyIdle.cpp @@ -29,7 +29,7 @@ static bool IsUserIdle() UINT dwPeriod = g_plugin.getByte("time", 10) * 60 * 1000; if (g_wMaskAdv & OPT_HIDEIFMIRIDLE) { - DWORD dwTick = Miranda_GetIdle(); + uint32_t dwTick = Miranda_GetIdle(); return GetTickCount() - dwTick > dwPeriod; } -- cgit v1.2.3