summaryrefslogtreecommitdiff
path: root/src/core/stdemail
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2014-02-16 12:44:38 +0000
committerGeorge Hazan <george.hazan@gmail.com>2014-02-16 12:44:38 +0000
commit907116c051e995a6a593743c7a6dfdece747c2c0 (patch)
tree59d079cb818382ae09840da99e3be1b58abffff5 /src/core/stdemail
parentbec34b3f632d179368f00b49e984ac576f14fad4 (diff)
code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@8133 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/core/stdemail')
-rw-r--r--src/core/stdemail/email.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/core/stdemail/email.cpp b/src/core/stdemail/email.cpp
index 9cd254783d..23ae28da48 100644
--- a/src/core/stdemail/email.cpp
+++ b/src/core/stdemail/email.cpp
@@ -32,12 +32,12 @@ void SendEmailThread(void *szUrl)
return;
}
-static INT_PTR SendEMailCommand(WPARAM wParam, LPARAM lParam)
+static INT_PTR SendEMailCommand(WPARAM hContact, LPARAM lParam)
{
DBVARIANT dbv;
- char *szProto = GetContactProto(wParam);
- if (szProto == NULL || db_get_s(wParam, szProto, "e-mail", &dbv)) {
- if (db_get_s(wParam, "UserInfo", "Mye-mail0", &dbv)) {
+ char *szProto = GetContactProto(hContact);
+ if (szProto == NULL || db_get_s(hContact, szProto, "e-mail", &dbv)) {
+ if (db_get_s(hContact, "UserInfo", "Mye-mail0", &dbv)) {
MessageBox((HWND)lParam, TranslateT("User has not registered an e-mail address"), TranslateT("Send e-mail"), MB_OK);
return 1;
}
@@ -50,13 +50,13 @@ static INT_PTR SendEMailCommand(WPARAM wParam, LPARAM lParam)
return 0;
}
-static int EMailPreBuildMenu(WPARAM wParam, LPARAM)
+static int EMailPreBuildMenu(WPARAM hContact, LPARAM)
{
bool bEnabled = true;
DBVARIANT dbv = { 0 };
- char *szProto = GetContactProto(wParam);
- if (szProto == NULL || db_get_s(wParam, szProto, "e-mail", &dbv))
- if (db_get_s(wParam, "UserInfo", "Mye-mail0", &dbv))
+ char *szProto = GetContactProto(hContact);
+ if (szProto == NULL || db_get_s(hContact, szProto, "e-mail", &dbv))
+ if (db_get_s(hContact, "UserInfo", "Mye-mail0", &dbv))
bEnabled = false;
Menu_ShowItem(hEMailMenuItem, bEnabled);