diff options
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/SMS/src/recvdlg.cpp | 1 | ||||
-rw-r--r-- | plugins/SMS/src/senddlg.cpp | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/plugins/SMS/src/recvdlg.cpp b/plugins/SMS/src/recvdlg.cpp index 5a02b133bf..0409ba6693 100644 --- a/plugins/SMS/src/recvdlg.cpp +++ b/plugins/SMS/src/recvdlg.cpp @@ -208,6 +208,7 @@ HWND RecvSMSWindowAdd(MCONTACT hContact,DWORD dwEventType,LPWSTR lpwszPhone,size break;
default:
lpwszTitlepart=_T("Unknown event type");
+ hIcon = 0;
}
wszPhoneLocal[0]='+';
diff --git a/plugins/SMS/src/senddlg.cpp b/plugins/SMS/src/senddlg.cpp index d8bbc9b8ce..f1784145b3 100644 --- a/plugins/SMS/src/senddlg.cpp +++ b/plugins/SMS/src/senddlg.cpp @@ -142,8 +142,7 @@ INT_PTR CALLBACK SendSmsDlgProc(HWND hWndDlg,UINT message,WPARAM wParam,LPARAM l SendSMSWindowUpdateAccountList(hWndDlg);
{
- TCHAR tszSign[1024];
- size_t dwSignLen;
+ size_t dwSignLen = 0;
if (DB_SMS_GetByte(NULL,"UseSignature",SMS_DEFAULT_USESIGNATURE))
if (DB_SMS_GetStaticStringW(NULL,"Signature",tszSign,SIZEOF(tszSign),&dwSignLen))
@@ -154,6 +153,7 @@ INT_PTR CALLBACK SendSmsDlgProc(HWND hWndDlg,UINT message,WPARAM wParam,LPARAM l EnableWindow(GetDlgItem(hWndDlg,IDOK),dwSignLen);
}
+ TCHAR tszSign[1024];
mir_sntprintf(tszSign,SIZEOF(tszSign),_T("%d/%d"),dwSignLen,GetSMSMessageLenMax(hWndDlg));
SetDlgItemText(hWndDlg,IDC_COUNT,tszSign);
}
|