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/BossKeyPlus/src | |
parent | 1039b2829a264280493ba0fa979214fe024dc70c (diff) |
DWORD -> uint32_t
Diffstat (limited to 'plugins/BossKeyPlus/src')
-rw-r--r-- | plugins/BossKeyPlus/src/BossKey.cpp | 6 | ||||
-rw-r--r-- | plugins/BossKeyPlus/src/BossKeyIdle.cpp | 2 |
2 files changed, 4 insertions, 4 deletions
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;
}
|