diff options
author | George Hazan <george.hazan@gmail.com> | 2012-10-04 18:45:32 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-10-04 18:45:32 +0000 |
commit | e6d5abebb43fbbc00389a6528f7752d7ba4d96da (patch) | |
tree | 113ab4d87c0c45965ffda3003890557d1264bba3 /plugins/!NotAdopted/Xfire/xfiretest | |
parent | 6f340e0e8f8378fbe51e29007ffcae749dca9e6e (diff) |
garbage cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@1780 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/!NotAdopted/Xfire/xfiretest')
-rw-r--r-- | plugins/!NotAdopted/Xfire/xfiretest/Xfire_proxy.cpp | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/plugins/!NotAdopted/Xfire/xfiretest/Xfire_proxy.cpp b/plugins/!NotAdopted/Xfire/xfiretest/Xfire_proxy.cpp index 35185defe1..641c481097 100644 --- a/plugins/!NotAdopted/Xfire/xfiretest/Xfire_proxy.cpp +++ b/plugins/!NotAdopted/Xfire/xfiretest/Xfire_proxy.cpp @@ -37,13 +37,13 @@ void XfireclientConnecting(HANDLE hConnection, DWORD, void* extra ) ncon.wPort = (WORD)atol("25999");
ncon.timeout=5;
netlibcon = (HANDLE) CallService(MS_NETLIB_OPENCONNECTION, (WPARAM) hNetlib, (LPARAM) & ncon);
-
+
if(!netlibcon) {
Netlib_CloseHandle(hConnection);
}
mir_forkthread(FromServerToClient,(LPVOID)hConnection);
-
+
//schleife behandelt empfangende daten
do {
int cbRead = Netlib_Recv(hConnection, buf, sizeof(buf), 0);
@@ -67,7 +67,7 @@ void XfireclientConnecting(HANDLE hConnection, DWORD, void* extra ) }
//inits nachdem alle module geladen wurden
-int AfterSystemModulesLoaded(WPARAM wParam,LPARAM lParam)
+int AfterSystemModulesLoaded(WPARAM wParam,LPARAM lParam)
{
//init netlib handle
NETLIBUSER nlu = {0};
@@ -92,12 +92,5 @@ int AfterSystemModulesLoaded(WPARAM wParam,LPARAM lParam) int initXfireProxy() {
//inits nach dem alle module geladen wurden
HookEvent(ME_SYSTEM_MODULESLOADED, AfterSystemModulesLoaded);
-
-/* PROTOCOLDESCRIPTOR pd;
- ZeroMemory(&pd,sizeof(pd));
- pd.cbSize=sizeof(pd);
- pd.szName=protocolname;
- pd.type=PROTOTYPE_FILTER;
- CallService(MS_PROTO_REGISTERMODULE,0,(LPARAM)&pd);*/
return 0;
-}
\ No newline at end of file +}
|