summaryrefslogtreecommitdiff
path: root/plugins/Alarms/src/options.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-10-19 14:35:34 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-10-19 14:35:34 +0000
commit41f218316dce6b1bfcfb0f2754379fa74c5138ed (patch)
tree1cd44fe63c6ebabf70d8c4b6f34be37ab8e844f7 /plugins/Alarms/src/options.cpp
parent397e25f2b71347c7c83495fe5b25496ff3b02b75 (diff)
warning fixes
git-svn-id: http://svn.miranda-ng.org/main/trunk@6534 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Alarms/src/options.cpp')
-rw-r--r--plugins/Alarms/src/options.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/Alarms/src/options.cpp b/plugins/Alarms/src/options.cpp
index 68657c65f7..9d52447fc0 100644
--- a/plugins/Alarms/src/options.cpp
+++ b/plugins/Alarms/src/options.cpp
@@ -538,7 +538,7 @@ static INT_PTR CALLBACK DlgProcAddEdit(HWND hwndDlg, UINT msg, WPARAM wParam, LP
GetDlgItemText(hwndDlg, IDC_DESC, buff, MAX_PATH);
replaceStrT(add_edit_alarm->szDesc, buff);
- if (add_edit_alarm->szTitle == 0 || _tcslen(add_edit_alarm->szTitle) == 0) {
+ if (add_edit_alarm->szTitle == 0 || add_edit_alarm->szTitle[0] == '\0') {
MessageBox(hwndDlg, TranslateT("Please enter a title for this alarm."), TranslateT("Error"), MB_OK | MB_ICONERROR);
return TRUE;
}