diff options
author | George Hazan <george.hazan@gmail.com> | 2012-06-02 19:30:22 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-06-02 19:30:22 +0000 |
commit | d0bf6d4bd16ec8c5c677557db0c5d90d9af8e06a (patch) | |
tree | 6c29063c796ce34e88481495ed14dd1d8e8f69af /plugins/ExternalAPI/m_LogService.h | |
parent | 1fb814c69fe24e3b365dbf485d1fbef4a9993c4f (diff) |
64-bit compilation fixes
git-svn-id: http://svn.miranda-ng.org/main/trunk@268 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/ExternalAPI/m_LogService.h')
-rw-r--r-- | plugins/ExternalAPI/m_LogService.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/plugins/ExternalAPI/m_LogService.h b/plugins/ExternalAPI/m_LogService.h index dc6c9f0012..92c6898bc7 100644 --- a/plugins/ExternalAPI/m_LogService.h +++ b/plugins/ExternalAPI/m_LogService.h @@ -63,17 +63,17 @@ typedef struct { // returns 0 on success
#define MS_LOGSERVICE_REGISTER "LogService/Register"
-__inline static int logservice_register(char *szID, TCHAR *tszTitle, TCHAR *tszDefLogPath, TCHAR *tszDefFormat)
+__inline static INT_PTR logservice_register(char *szID, TCHAR *tszTitle, TCHAR *tszDefLogPath, TCHAR *tszDefFormat)
{
LS_REGINFO ri;
- ZeroMemory(&ri, sizeof(LS_REGINFO));
- ri.cbSize = sizeof(LS_REGINFO);
+ ZeroMemory(&ri, sizeof(LS_REGINFO));
+ ri.cbSize = sizeof(LS_REGINFO);
ri.szID = szID;
ri.tszTitle = tszTitle;
ri.tszDefLogPath = tszDefLogPath;
ri.tszDefFormat = tszDefFormat;
ri.Flags = LSRF_TCHAR;
- return CallService(MS_LOGSERVICE_REGISTER, (WPARAM)&ri, 0);
+ return CallService(MS_LOGSERVICE_REGISTER, (WPARAM)&ri, 0);
}
@@ -106,16 +106,16 @@ typedef struct { // returns 0 on success
#define MS_LOGSERVICE_LOG "LogService/Log"
-__inline static int logservice_log(char *szID, HANDLE hContact, TCHAR *tszMsg)
+__inline static INT_PTR logservice_log(char *szID, HANDLE hContact, TCHAR *tszMsg)
{
LS_MSGINFO mi;
- ZeroMemory(&mi, sizeof(LS_MSGINFO));
- mi.cbSize = sizeof(LS_MSGINFO);
+ ZeroMemory(&mi, sizeof(LS_MSGINFO));
+ mi.cbSize = sizeof(LS_MSGINFO);
mi.szID = szID;
mi.hContact = hContact;
mi.tszMsg = tszMsg;
mi.Flags = LSMF_TCHAR;
- return CallService(MS_LOGSERVICE_LOG, (WPARAM)&mi, 0);
+ return CallService(MS_LOGSERVICE_LOG, (WPARAM)&mi, 0);
}
|