summaryrefslogtreecommitdiff
path: root/ping_protocol/utils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ping_protocol/utils.cpp')
-rw-r--r--ping_protocol/utils.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/ping_protocol/utils.cpp b/ping_protocol/utils.cpp
index 2c35d0d..16bd8b1 100644
--- a/ping_protocol/utils.cpp
+++ b/ping_protocol/utils.cpp
@@ -288,7 +288,7 @@ void import_ping_address(int index, PINGADDRESS &pa) {
strncpy(pa.pszLabel, dbv.pszVal, MAX_PINGADDRESS_STRING_LENGTH);
DBFreeVariant(&dbv);
- pa.port = (int)DBGetContactSettingDword(0, "PingPlug", os4.str().c_str(), -1);
+ pa.port = (int)DBGetContactSettingDword(0, "PingPlug", os4.str().c_str(), (DWORD)-1);
DBGetContactSetting(0, "PingPlug", os5.str().c_str(), &dbv);
strncpy(pa.pszProto, dbv.pszVal, MAX_PINGADDRESS_STRING_LENGTH);