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/SkypeStatusChange/src | |
parent | 1039b2829a264280493ba0fa979214fe024dc70c (diff) |
DWORD -> uint32_t
Diffstat (limited to 'plugins/SkypeStatusChange/src')
-rw-r--r-- | plugins/SkypeStatusChange/src/main.cpp | 8 | ||||
-rw-r--r-- | plugins/SkypeStatusChange/src/options.cpp | 2 | ||||
-rw-r--r-- | plugins/SkypeStatusChange/src/stdafx.h | 8 |
3 files changed, 9 insertions, 9 deletions
diff --git a/plugins/SkypeStatusChange/src/main.cpp b/plugins/SkypeStatusChange/src/main.cpp index 01ae8cf5f4..e1ce328a51 100644 --- a/plugins/SkypeStatusChange/src/main.cpp +++ b/plugins/SkypeStatusChange/src/main.cpp @@ -142,7 +142,7 @@ static void ThreadFunc(void*) }
}
else {
- DWORD dwResult = ::MsgWaitForMultipleObjects(1, &g_hEventShutdown, FALSE, INFINITE, QS_ALLEVENTS);
+ uint32_t dwResult = ::MsgWaitForMultipleObjects(1, &g_hEventShutdown, FALSE, INFINITE, QS_ALLEVENTS);
assert(WAIT_FAILED != dwResult);
if (WAIT_OBJECT_0 == dwResult)
break;
@@ -182,7 +182,7 @@ LRESULT APIENTRY SkypeAPI_WindowProc(HWND hWnd, UINT msg, WPARAM wp, LPARAM lp) const char szSkypeCmdSetStatus[] = "SET USERSTATUS ";
::strncpy_s(szSkypeCmd, szSkypeCmdSetStatus, sizeof(szSkypeCmdSetStatus) / sizeof(szSkypeCmdSetStatus[0]));
::strncat_s(szSkypeCmd, ms.m_pszSkypeStatus, _countof(szSkypeCmd) - mir_strlen(szSkypeCmd));
- DWORD cLength = static_cast<DWORD>(mir_strlen(szSkypeCmd));
+ uint32_t cLength = static_cast<uint32_t>(mir_strlen(szSkypeCmd));
COPYDATASTRUCT oCopyData;
oCopyData.dwData = 0;
@@ -207,7 +207,7 @@ LRESULT APIENTRY SkypeAPI_WindowProc(HWND hWnd, UINT msg, WPARAM wp, LPARAM lp) oCopyData.dwData = 0;
oCopyData.lpData = szSkypeCmd;
- oCopyData.cbData = static_cast<DWORD>(mir_strlen(szSkypeCmd)) + 1;
+ oCopyData.cbData = static_cast<uint32_t>(mir_strlen(szSkypeCmd)) + 1;
SendMessage(wndSkypeAPIWindow, WM_COPYDATA, (WPARAM)hWnd, (LPARAM)&oCopyData);
}
}
@@ -245,7 +245,7 @@ int SSC_OnPreShutdown(WPARAM/* wParam*/, LPARAM/* lParam*/) BOOL b = SetEvent(g_hEventShutdown);
assert(b && "SetEvent failed");
- DWORD dwResult = ::WaitForSingleObject(g_hThread, INFINITE);
+ uint32_t dwResult = ::WaitForSingleObject(g_hThread, INFINITE);
assert(WAIT_FAILED != dwResult);
b = ::CloseHandle(g_hEventShutdown);
diff --git a/plugins/SkypeStatusChange/src/options.cpp b/plugins/SkypeStatusChange/src/options.cpp index ee990c5762..e5dacd4291 100644 --- a/plugins/SkypeStatusChange/src/options.cpp +++ b/plugins/SkypeStatusChange/src/options.cpp @@ -257,7 +257,7 @@ static INT_PTR CALLBACK SettingsDlgProc(HWND hdlg,UINT msg,WPARAM wp,LPARAM lp) case NM_CLICK:
if (IDC_TREE_PROTOCOLS == wp) {
- DWORD pos = ::GetMessagePos();
+ uint32_t pos = ::GetMessagePos();
HWND hwndTree = ::GetDlgItem(hdlg,IDC_TREE_PROTOCOLS);
diff --git a/plugins/SkypeStatusChange/src/stdafx.h b/plugins/SkypeStatusChange/src/stdafx.h index b289ef3b4a..97c4d1e730 100644 --- a/plugins/SkypeStatusChange/src/stdafx.h +++ b/plugins/SkypeStatusChange/src/stdafx.h @@ -79,19 +79,19 @@ public: bool IsProtocolExcluded(const char* pszProtocol)const
{
- DWORD dwSettings = db_get_dw(NULL, pszProtocol, "ChangeSkypeStatus_Exclusions", 0);
+ uint32_t dwSettings = db_get_dw(NULL, pszProtocol, "ChangeSkypeStatus_Exclusions", 0);
return ((dwSettings&cssAll) ? true : false);
}
bool IsProtocolStatusExcluded(const char* pszProtocol, int nStatus)const
{
- DWORD dwSettings = db_get_dw(NULL, pszProtocol, "ChangeSkypeStatus_Exclusions", 0);
+ uint32_t dwSettings = db_get_dw(NULL, pszProtocol, "ChangeSkypeStatus_Exclusions", 0);
return ((dwSettings&Status2Flag(nStatus)) ? true : false);
}
void ExcludeProtocol(const char* pszProtocol, bool bExclude)
{
- DWORD dwSettings = db_get_dw(NULL, pszProtocol, "ChangeSkypeStatus_Exclusions", 0);
+ uint32_t dwSettings = db_get_dw(NULL, pszProtocol, "ChangeSkypeStatus_Exclusions", 0);
if (bExclude)
dwSettings |= cssAll;
else
@@ -102,7 +102,7 @@ public: void ExcludeProtocolStatus(const char* pszProtocol, int nStatus, bool bExclude)
{
- DWORD dwSettings = db_get_dw(NULL, pszProtocol, "ChangeSkypeStatus_Exclusions", 0);
+ uint32_t dwSettings = db_get_dw(NULL, pszProtocol, "ChangeSkypeStatus_Exclusions", 0);
if (bExclude)
dwSettings |= Status2Flag(nStatus);
else
|