diff options
author | Tobias Weimer <wishmaster51@googlemail.com> | 2012-07-20 18:29:17 +0000 |
---|---|---|
committer | Tobias Weimer <wishmaster51@googlemail.com> | 2012-07-20 18:29:17 +0000 |
commit | 8237a289e2f5d93c6f7ea872a6cb644a7ff9e08d (patch) | |
tree | e22c66ce51f021ef22718c0215f673548d058a66 /plugins/MetaContacts | |
parent | f7f1dc1982eec1802b501429dc5820d2ff898fc8 (diff) |
minor x64 fixes
git-svn-id: http://svn.miranda-ng.org/main/trunk@1086 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MetaContacts')
-rw-r--r-- | plugins/MetaContacts/src/meta_api.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/MetaContacts/src/meta_api.cpp b/plugins/MetaContacts/src/meta_api.cpp index 331bdb55d5..73e7624521 100644 --- a/plugins/MetaContacts/src/meta_api.cpp +++ b/plugins/MetaContacts/src/meta_api.cpp @@ -32,7 +32,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. //lParam=0
//returns a handle to the parent metacontact, or null if this contact is not a subcontact
INT_PTR MetaAPI_GetMeta(WPARAM wParam, LPARAM lParam) {
- return (int)(HANDLE)DBGetContactSettingDword((HANDLE)wParam, META_PROTO, "Handle", 0);
+ return (INT_PTR)(HANDLE)DBGetContactSettingDword((HANDLE)wParam, META_PROTO, "Handle", 0);
}
//gets the handle for the default contact
@@ -42,7 +42,7 @@ INT_PTR MetaAPI_GetMeta(WPARAM wParam, LPARAM lParam) { INT_PTR MetaAPI_GetDefault(WPARAM wParam, LPARAM lParam) {
DWORD default_contact_number = DBGetContactSettingDword((HANDLE)wParam, META_PROTO, "Default", -1);
if (default_contact_number != -1) {
- return (int)Meta_GetContactHandle((HANDLE)wParam, default_contact_number);
+ return (INT_PTR)Meta_GetContactHandle((HANDLE)wParam, default_contact_number);
}
return 0;
}
@@ -60,7 +60,7 @@ INT_PTR MetaAPI_GetDefaultNum(WPARAM wParam, LPARAM lParam) { //lParam=0
//returns a handle to the 'most online' contact
INT_PTR MetaAPI_GetMostOnline(WPARAM wParam, LPARAM lParam) {
- return (int)Meta_GetMostOnline((HANDLE)wParam);
+ return (INT_PTR)Meta_GetMostOnline((HANDLE)wParam);
}
//gets the number of subcontacts for a metacontact
@@ -77,7 +77,7 @@ INT_PTR MetaAPI_GetNumContacts(WPARAM wParam, LPARAM lParam) { //lParam=(DWORD)contact number
//returns a handle to the specified subcontact
INT_PTR MetaAPI_GetContact(WPARAM wParam, LPARAM lParam) {
- return (int)Meta_GetContactHandle((HANDLE)wParam, (DWORD)lParam);
+ return (INT_PTR)Meta_GetContactHandle((HANDLE)wParam, (DWORD)lParam);
}
//sets the default contact, using the subcontact's contact number
@@ -203,7 +203,7 @@ INT_PTR MetaAPI_GetForceState(WPARAM wParam, LPARAM lParam) { // method to get protocol name - used to be sure you're dealing with a "real" metacontacts plugin :)
// wParam=lParam=0
INT_PTR MetaAPI_GetProtoName(WPARAM wParam, LPARAM lParam) {
- return (int)META_PROTO;
+ return (INT_PTR)META_PROTO;
}
// added 0.9.5.0 (22/3/05)
|