summaryrefslogtreecommitdiff
path: root/src/core/stdemail/email.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2014-02-10 08:04:30 +0000
committerGeorge Hazan <george.hazan@gmail.com>2014-02-10 08:04:30 +0000
commitddba4ede6b451d0cfcd0d32b5180fbd0689966bf (patch)
tree5d74f37a7013d13b92c182628d6b68a58e148ae4 /src/core/stdemail/email.cpp
parentc39340bf493a1745a41317bbf937fc7eb6cbb26a (diff)
- HANDLE hContact => HCONTACT
- GCF_* prefix was added to chat constants to avoid name conflicts git-svn-id: http://svn.miranda-ng.org/main/trunk@8078 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/core/stdemail/email.cpp')
-rw-r--r--src/core/stdemail/email.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/core/stdemail/email.cpp b/src/core/stdemail/email.cpp
index 12296eeda3..537f40e7df 100644
--- a/src/core/stdemail/email.cpp
+++ b/src/core/stdemail/email.cpp
@@ -35,9 +35,9 @@ void SendEmailThread(void *szUrl)
static INT_PTR SendEMailCommand(WPARAM wParam, LPARAM lParam)
{
DBVARIANT dbv;
- char *szProto = GetContactProto((HANDLE)wParam);
- if (szProto == NULL || db_get_s((HANDLE)wParam, szProto, "e-mail", &dbv)) {
- if (db_get_s((HANDLE)wParam, "UserInfo", "Mye-mail0", &dbv)) {
+ char *szProto = GetContactProto((HCONTACT)wParam);
+ if (szProto == NULL || db_get_s((HCONTACT)wParam, szProto, "e-mail", &dbv)) {
+ if (db_get_s((HCONTACT)wParam, "UserInfo", "Mye-mail0", &dbv)) {
MessageBox((HWND)lParam, TranslateT("User has not registered an e-mail address"), TranslateT("Send e-mail"), MB_OK);
return 1;
}
@@ -54,9 +54,9 @@ static int EMailPreBuildMenu(WPARAM wParam, LPARAM)
{
bool bEnabled = true;
DBVARIANT dbv = { 0 };
- char *szProto = GetContactProto((HANDLE)wParam);
- if (szProto == NULL || db_get_s((HANDLE)wParam, szProto, "e-mail", & dbv))
- if (db_get_s((HANDLE)wParam, "UserInfo", "Mye-mail0", &dbv))
+ char *szProto = GetContactProto((HCONTACT)wParam);
+ if (szProto == NULL || db_get_s((HCONTACT)wParam, szProto, "e-mail", &dbv))
+ if (db_get_s((HCONTACT)wParam, "UserInfo", "Mye-mail0", &dbv))
bEnabled = false;
Menu_ShowItem(hEMailMenuItem, bEnabled);