diff options
Diffstat (limited to 'protocols/ICQCorp/src/corp.cpp')
-rw-r--r-- | protocols/ICQCorp/src/corp.cpp | 84 |
1 files changed, 42 insertions, 42 deletions
diff --git a/protocols/ICQCorp/src/corp.cpp b/protocols/ICQCorp/src/corp.cpp index 8d57af8048..cd6388e59d 100644 --- a/protocols/ICQCorp/src/corp.cpp +++ b/protocols/ICQCorp/src/corp.cpp @@ -1,20 +1,20 @@ /*
- ICQ Corporate protocol plugin for Miranda IM.
- Copyright (C) 2003-2005 Eugene Tarasenko <zlyden13@inbox.ru>
-
- This program is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 2 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software
- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ ICQ Corporate protocol plugin for Miranda IM.
+ Copyright (C) 2003-2005 Eugene Tarasenko <zlyden13@inbox.ru>
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#include "corp.h"
@@ -42,17 +42,18 @@ PLUGININFOEX pluginInfo = BOOL APIENTRY DllMain(HINSTANCE hModule, DWORD reason, LPVOID)
{
- hInstance = hModule;
- if (reason == DLL_PROCESS_ATTACH) DisableThreadLibraryCalls(hModule);
- return TRUE;
+ hInstance = hModule;
+ if (reason == DLL_PROCESS_ATTACH)
+ DisableThreadLibraryCalls(hModule);
+ return TRUE;
}
///////////////////////////////////////////////////////////////////////////////
extern "C" __declspec(dllexport) int Unload()
{
- UnloadServices();
- return 0;
+ UnloadServices();
+ return 0;
}
///////////////////////////////////////////////////////////////////////////////
@@ -82,7 +83,7 @@ extern "C" __declspec(dllexport) int Load() extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD)
{
- return &pluginInfo;
+ return &pluginInfo;
}
///////////////////////////////////////////////////////////////////////////////
@@ -90,26 +91,25 @@ extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD) #ifdef _DEBUG
void T(char *format, ...)
{
- char buffer[8196], bufferTime[64];
- va_list list;
- SYSTEMTIME t;
-
- va_start(list, format);
- vsprintf(buffer, format, list);
- va_end(list);
-
- GetLocalTime(&t);
- sprintf(bufferTime, "%.2d:%.2d:%.2d.%.3d ", t.wHour, t.wMinute, t.wSecond, t.wMilliseconds);
-
- static HANDLE hFile = INVALID_HANDLE_VALUE;
- DWORD result;
-
- if (hFile == INVALID_HANDLE_VALUE)
- {
- hFile = CreateFile("ICQ Corp.log", GENERIC_WRITE, FILE_SHARE_READ|FILE_SHARE_WRITE, NULL, OPEN_ALWAYS, 0, NULL);
- SetFilePointer(hFile, 0, 0, FILE_END);
- }
- WriteFile(hFile, bufferTime, (DWORD)mir_strlen(bufferTime), &result, NULL);
+ char buffer[8196], bufferTime[64];
+ va_list list;
+ SYSTEMTIME t;
+
+ va_start(list, format);
+ vsprintf(buffer, format, list);
+ va_end(list);
+
+ GetLocalTime(&t);
+ sprintf(bufferTime, "%.2d:%.2d:%.2d.%.3d ", t.wHour, t.wMinute, t.wSecond, t.wMilliseconds);
+
+ static HANDLE hFile = INVALID_HANDLE_VALUE;
+ if (hFile == INVALID_HANDLE_VALUE) {
+ hFile = CreateFile("ICQ Corp.log", GENERIC_WRITE, FILE_SHARE_READ | FILE_SHARE_WRITE, NULL, OPEN_ALWAYS, 0, NULL);
+ SetFilePointer(hFile, 0, 0, FILE_END);
+ }
+
+ DWORD result;
+ WriteFile(hFile, bufferTime, (DWORD)mir_strlen(bufferTime), &result, NULL);
WriteFile(hFile, buffer, (DWORD)mir_strlen(buffer), &result, NULL);
}
#endif
|