diff options
Diffstat (limited to 'src/core/stdemail/email.cpp')
-rw-r--r-- | src/core/stdemail/email.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/core/stdemail/email.cpp b/src/core/stdemail/email.cpp index 537f40e7df..9c8f1eeafe 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((HCONTACT)wParam);
- if (szProto == NULL || db_get_s((HCONTACT)wParam, szProto, "e-mail", &dbv)) {
- if (db_get_s((HCONTACT)wParam, "UserInfo", "Mye-mail0", &dbv)) {
+ char *szProto = GetContactProto((MCONTACT)wParam);
+ if (szProto == NULL || db_get_s((MCONTACT)wParam, szProto, "e-mail", &dbv)) {
+ if (db_get_s((MCONTACT)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((HCONTACT)wParam);
- if (szProto == NULL || db_get_s((HCONTACT)wParam, szProto, "e-mail", &dbv))
- if (db_get_s((HCONTACT)wParam, "UserInfo", "Mye-mail0", &dbv))
+ char *szProto = GetContactProto((MCONTACT)wParam);
+ if (szProto == NULL || db_get_s((MCONTACT)wParam, szProto, "e-mail", &dbv))
+ if (db_get_s((MCONTACT)wParam, "UserInfo", "Mye-mail0", &dbv))
bEnabled = false;
Menu_ShowItem(hEMailMenuItem, bEnabled);
|