diff options
author | George Hazan <george.hazan@gmail.com> | 2014-08-16 07:21:56 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-08-16 07:21:56 +0000 |
commit | 5cbde68cad776dd10e36b72f030712abdf3f225a (patch) | |
tree | c6fcc0766a4e50ba5835191ce9a548d5f2467091 /plugins/HTTPServer/src | |
parent | d26bca3f4f1c14cef634ca627be16ba7c84a2625 (diff) |
compilation fix
git-svn-id: http://svn.miranda-ng.org/main/trunk@10202 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/HTTPServer/src')
-rw-r--r-- | plugins/HTTPServer/src/main.cpp | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/plugins/HTTPServer/src/main.cpp b/plugins/HTTPServer/src/main.cpp index cd3062d859..11c1350bc8 100644 --- a/plugins/HTTPServer/src/main.cpp +++ b/plugins/HTTPServer/src/main.cpp @@ -627,19 +627,17 @@ INT_PTR nToggelAcceptConnections(WPARAM wparam, LPARAM /*lparam*/) { if (!hDirectBoundPort) {
NETLIBUSERSETTINGS nus = { 0 };
nus.cbSize = sizeof(nus);
- if (! CallService(MS_NETLIB_GETUSERSETTINGS, (WPARAM) hNetlibUser, (LPARAM) &nus)) {
- Netlib_LogfT(hNetlibUser, _T("Failed to get NETLIBUSERSETTINGS using MS_NETLIB_GETUSERSETTINGS"));
- }
+ if (!CallService(MS_NETLIB_GETUSERSETTINGS, (WPARAM) hNetlibUser, (LPARAM) &nus))
+ Netlib_Logf(hNetlibUser, "Failed to get NETLIBUSERSETTINGS using MS_NETLIB_GETUSERSETTINGS");
NETLIBBIND nlb = { 0 };
nlb.cbSize = sizeof(NETLIBBIND);
nlb.pfnNewConnection = ConnectionOpen;
if (nus.specifyIncomingPorts && nus.szIncomingPorts && nus.szIncomingPorts[0])
nlb.wPort = 0;
- else {
- //MessageBox( NULL, "Debug message using default port!", MSG_BOX_TITEL, MB_OK );
+ else
nlb.wPort = 80;
- }
+
hDirectBoundPort = (HANDLE) CallService(MS_NETLIB_BINDPORT, (WPARAM) hNetlibUser, (LPARAM) & nlb);
if (!hDirectBoundPort) {
TCHAR szTemp[200];
@@ -653,16 +651,14 @@ INT_PTR nToggelAcceptConnections(WPARAM wparam, LPARAM /*lparam*/) { mi.hIcon = LoadIcon(hInstance, MAKEINTRESOURCE(IDI_DISABLE_SERVER));
mi.ptszName = LPGENT("Disable HTTP server");
- Netlib_LogfT(hNetlibUser, mi.ptszName);
- } else if (hDirectBoundPort && wparam == 0) {
+ }
+ else if (hDirectBoundPort && wparam == 0) {
Netlib_CloseHandle(hDirectBoundPort);
hDirectBoundPort = 0;
mi.hIcon = LoadIcon(hInstance, MAKEINTRESOURCE(IDI_SHARE_NEW_FILE));
mi.ptszName = LPGENT("Enable HTTP server");
- Netlib_LogfT(hNetlibUser, mi.ptszName);
- } else {
- return 0; // no changes;
}
+ else return 0; // no changes;
if (hAcceptConnectionsMenuItem)
Menu_ModifyItem(hAcceptConnectionsMenuItem, &mi);
|