summaryrefslogtreecommitdiff
path: root/plugins/HTTPServer/src/GuiElements.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2021-12-26 20:31:39 +0300
committerGeorge Hazan <ghazan@miranda.im>2021-12-26 20:31:39 +0300
commitcddcd7483a7c472598af098e759e5d309024f606 (patch)
treeb0a227d6e087c41958cc84d27bc323353248aae5 /plugins/HTTPServer/src/GuiElements.cpp
parent1039b2829a264280493ba0fa979214fe024dc70c (diff)
DWORD -> uint32_t
Diffstat (limited to 'plugins/HTTPServer/src/GuiElements.cpp')
-rw-r--r--plugins/HTTPServer/src/GuiElements.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/HTTPServer/src/GuiElements.cpp b/plugins/HTTPServer/src/GuiElements.cpp
index be8df43712..5a409ad9e3 100644
--- a/plugins/HTTPServer/src/GuiElements.cpp
+++ b/plugins/HTTPServer/src/GuiElements.cpp
@@ -198,7 +198,7 @@ string sCreateLink(const char * pszSrvPath)
ReplaceAll(sLink, "%LocalIP%", szTemp);
if (sLink.find("%ExternalIP%") != sLink.npos) {
- static DWORD dwExternalIpAddressGenerated = 0;
+ static uint32_t dwExternalIpAddressGenerated = 0;
// Get the IP again after 10 minutes
if (!dwExternalIpAddress || GetTickCount() - dwExternalIpAddressGenerated > 10 * 60 * 1000) {
@@ -405,7 +405,7 @@ UINT_PTR CALLBACK ShareNewFileDialogHook(
switch (LOWORD(wParam)) {
case IDC_TOGGLE_MASK:
{
- DWORD dwCur;
+ uint32_t dwCur;
SendDlgItemMessage(hDlg, IDC_ALLOWED_IP_MASK, IPM_GETADDRESS, 0, (LPARAM)&dwCur);
SendDlgItemMessage(hDlg, IDC_ALLOWED_IP_MASK, IPM_SETADDRESS, 0, (LPARAM)dwCur == 0xFFFFFFFF ? 0 : 0xFFFFFFFF);
return TRUE;
@@ -599,7 +599,7 @@ void UpdateStatisticView(HWND hwndDlg, bool bRefressUsersOnly = false)
sItem.pszText = szTmp;
ListView_SetItem(hUserList, &sItem);
- DWORD dwSpeed = pclCurUser->dwGetDownloadSpeed();
+ uint32_t dwSpeed = pclCurUser->dwGetDownloadSpeed();
if (dwSpeed > 10000) {
dwSpeed += 512; // make sure we round ot down correctly.
dwSpeed /= 1024;
@@ -689,12 +689,12 @@ static INT_PTR CALLBACK DlgProcStatsticView(HWND hwndDlg, UINT msg, WPARAM wPara
HWND hUserList = GetDlgItem(hwndDlg, IDC_CURRENT_USERS);
{ // init adv. win styles
- DWORD dw = ListView_GetExtendedListViewStyle(hShareList);
+ uint32_t dw = ListView_GetExtendedListViewStyle(hShareList);
dw |= LVS_EX_HEADERDRAGDROP | LVS_EX_FULLROWSELECT;
ListView_SetExtendedListViewStyle(hShareList, dw /*| LVS_EX_LABELTIP*/);
}
{ // init adv. win styles
- DWORD dw = ListView_GetExtendedListViewStyle(hUserList);
+ uint32_t dw = ListView_GetExtendedListViewStyle(hUserList);
dw |= LVS_EX_HEADERDRAGDROP | LVS_EX_FULLROWSELECT;
ListView_SetExtendedListViewStyle(hUserList, dw /*| LVS_EX_LABELTIP*/);
}
@@ -1172,7 +1172,7 @@ static INT_PTR CALLBACK OptionsDlgProc(HWND hwndDlg, UINT msg, WPARAM wParam, LP
char szKeyWord[1000];
GetDlgItemText(hwndDlg, IDC_URL_ADDRESS, szUrl, _countof(szUrl));
GetDlgItemText(hwndDlg, IDC_PAGE_KEYWORD, szKeyWord, _countof(szKeyWord));
- DWORD dwExternalIP = GetExternIP(szUrl, szKeyWord);
+ uint32_t dwExternalIP = GetExternIP(szUrl, szKeyWord);
mir_snprintf(szKeyWord, Translate("Your external IP was detected as %d.%d.%d.%d\r\nby: %s"),
SplitIpAddress(dwExternalIP),