summaryrefslogtreecommitdiff
path: root/no_history/dllmain.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'no_history/dllmain.cpp')
-rw-r--r--no_history/dllmain.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/no_history/dllmain.cpp b/no_history/dllmain.cpp
index 17e161e..9d1c4d0 100644
--- a/no_history/dllmain.cpp
+++ b/no_history/dllmain.cpp
@@ -151,7 +151,7 @@ int OnDatabaseEventAdd(WPARAM wParam, LPARAM lParam) {
return 0;
}
-int ServiceToggle(WPARAM wParam, LPARAM lParam) {
+INT_PTR ServiceToggle(WPARAM wParam, LPARAM lParam) {
HANDLE hContact = (HANDLE)wParam;
bool remove = (DBGetContactSettingByte(hContact, MODULE, DBSETTING_REMOVE, 0) != 0);
@@ -168,7 +168,7 @@ int ServiceToggle(WPARAM wParam, LPARAM lParam) {
return 0;
}
-int ServiceClear(WPARAM wParam, LPARAM lParam) {
+INT_PTR ServiceClear(WPARAM wParam, LPARAM lParam) {
HANDLE hContact = (HANDLE)wParam;
if(MessageBox(0, TranslateT("This operation will PERMANENTLY REMOVE all history for this contact.\nAre you sure you want to do this?"), TranslateT("Clear History"), MB_YESNO | MB_ICONWARNING) == IDYES) {
@@ -261,7 +261,7 @@ int ModulesLoaded(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;
@@ -273,7 +273,7 @@ int ModulesLoaded(WPARAM wParam, LPARAM lParam) {
update.szBetaVersionURL = "http://www.scottellis.com.au/miranda_plugins/ver_no_history.html";
update.pbBetaVersionPrefix = (BYTE *)"NoHistory plugin, version ";
- update.cpbBetaVersionPrefix = strlen((char *)update.pbBetaVersionPrefix);
+ update.cpbBetaVersionPrefix = (int)strlen((char *)update.pbBetaVersionPrefix);
CallService(MS_UPDATE_REGISTER, 0, (WPARAM)&update);
}