summaryrefslogtreecommitdiff
path: root/plugins/Alarms/alarms.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-06-02 15:43:18 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-06-02 15:43:18 +0000
commitb9342641f520a5418fb2a8b2993148a66ea8e33b (patch)
treee7b88518a6f0b3e73a8ac67f2a008b174bc6cfcd /plugins/Alarms/alarms.cpp
parent526bab64790186ca6d33a96d0bd14df683b5d184 (diff)
64-bit compilation fixes
git-svn-id: http://svn.miranda-ng.org/main/trunk@263 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Alarms/alarms.cpp')
-rw-r--r--plugins/Alarms/alarms.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/plugins/Alarms/alarms.cpp b/plugins/Alarms/alarms.cpp
index d95979ef74..7882173482 100644
--- a/plugins/Alarms/alarms.cpp
+++ b/plugins/Alarms/alarms.cpp
@@ -92,7 +92,7 @@ static int CALLBACK PopupDlgProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM
}
void ShowPopup(HANDLE hContact, const char *msg) {
- if(ServiceExists(MS_POPUP_ADDPOPUP)) {
+ if (ServiceExists(MS_POPUP_ADDPOPUP)) {
POPUPDATAEX ppd;
char *lpzContactName;
@@ -136,14 +136,14 @@ static int PluginMessageReceived(WPARAM wParam,LPARAM lParam)
char msg[1024], buff[1024];
- if(strncmp(ppre->szMessage, szGamePrefix, strlen(szGamePrefix)))
+ if (strncmp(ppre->szMessage, szGamePrefix, strlen(szGamePrefix)))
return CallService( MS_PROTO_CHAINRECV, wParam, lParam );
strcpy(msg, ppre->szMessage + strlen(szGamePrefix));
savedMsg = ppre->szMessage;
- if(!strcmp(msg, " ffw")) {
+ if (!strcmp(msg, " ffw")) {
sprintf(buff, "Fast forward!");
hWnd = FindWindow(0, "Windows Media Player");
@@ -225,7 +225,7 @@ static int InitTopToolbarButton(WPARAM wParam, LPARAM lParam) {
}
static int MainInit(WPARAM wparam,LPARAM lparam) {
- if(ServiceExists(MS_UPDATE_REGISTER)) {
+ if (ServiceExists(MS_UPDATE_REGISTER)) {
// register with updater
Update update = {0};
char szVersion[16];
@@ -234,7 +234,7 @@ static int MainInit(WPARAM wparam,LPARAM lparam) {
update.szComponentName = pluginInfo.shortName;
update.pbVersion = (BYTE *)CreateVersionString(pluginInfo.version, szVersion);
- update.cpbVersion = strlen((char *)update.pbVersion);
+ update.cpbVersion = (int)strlen((char *)update.pbVersion);
update.szUpdateURL = UPDATER_AUTOREGISTER;
@@ -246,7 +246,7 @@ static int MainInit(WPARAM wparam,LPARAM lparam) {
update.szBetaVersionURL = "http://www.scottellis.com.au/miranda_plugins/ver_alarms.html";
update.pbBetaVersionPrefix = (BYTE *)" version ";
- update.cpbBetaVersionPrefix = strlen((char *)update.pbBetaVersionPrefix);
+ update.cpbBetaVersionPrefix = (int)strlen((char *)update.pbBetaVersionPrefix);
CallService(MS_UPDATE_REGISTER, 0, (WPARAM)&update);
}
@@ -268,7 +268,7 @@ static int MainInit(WPARAM wparam,LPARAM lparam) {
while( hContact )
{
- if( !CallService( MS_PROTO_ISPROTOONCONTACT, ( WPARAM )hContact, ( LPARAM )SERVICENAME ))
+ if ( !CallService( MS_PROTO_ISPROTOONCONTACT, ( WPARAM )hContact, ( LPARAM )SERVICENAME ))
CallService( MS_PROTO_ADDTOCONTACT, ( WPARAM )hContact, ( LPARAM )SERVICENAME );
hContact = ( HANDLE )CallService( MS_DB_CONTACT_FINDNEXT, ( WPARAM )hContact, 0 );