summaryrefslogtreecommitdiff
path: root/plugins/Ping/src/ping.cpp
diff options
context:
space:
mode:
authorTobias Weimer <wishmaster51@googlemail.com>2014-01-14 14:56:30 +0000
committerTobias Weimer <wishmaster51@googlemail.com>2014-01-14 14:56:30 +0000
commita56fe59ac345e61c04632dc20785e52aefd1c2e9 (patch)
treeecd1cd7354fb10ba2a4e87b178dd9a37963d1a0a /plugins/Ping/src/ping.cpp
parenta34c99ddc7c283559896a473ef3c48a22226ab24 (diff)
-Converted Ping to Unicode
-Fixed minor bugs (fixes #526) git-svn-id: http://svn.miranda-ng.org/main/trunk@7644 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Ping/src/ping.cpp')
-rw-r--r--plugins/Ping/src/ping.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/plugins/Ping/src/ping.cpp b/plugins/Ping/src/ping.cpp
index f107f5a9d3..64dd259a65 100644
--- a/plugins/Ping/src/ping.cpp
+++ b/plugins/Ping/src/ping.cpp
@@ -79,12 +79,10 @@ int OnShutdown(WPARAM wParam, LPARAM lParam) {
return 0;
}
-int OnModulesLoaded(WPARAM wParam, LPARAM lParam) {
+int OnModulesLoaded(WPARAM, LPARAM) {
NETLIBUSER nl_user = {0};
nl_user.cbSize = sizeof(nl_user);
nl_user.szSettingsModule = PLUG;
- //nl_user.flags = NUF_OUTGOING | NUF_HTTPGATEWAY | NUF_NOOPTIONS;
- //nl_user.flags = NUF_OUTGOING | NUF_NOOPTIONS;
nl_user.flags = NUF_OUTGOING | NUF_HTTPCONNS | NUF_TCHAR;
nl_user.ptszDescriptiveName = TranslateT("Ping Plugin");
nl_user.szHttpGatewayHello = 0;
@@ -114,7 +112,7 @@ int OnModulesLoaded(WPARAM wParam, LPARAM lParam) {
graphs_init();
- if(options.logging) CallService(PLUG "/Log", (WPARAM)"start", 0);
+ if(options.logging) CallService(PLUG "/Log", (WPARAM)_T("start"), 0);
return 0;
}
@@ -164,7 +162,7 @@ extern "C" __declspec(dllexport) int Unload(void)
CloseHandle( mainThread );
- if(options.logging) CallService(PLUG "/Log", (WPARAM)"stop", 0);
+ if(options.logging) CallService(PLUG "/Log", (WPARAM)_T("stop"), 0);
return 0;
}