Rev 194 | Rev 206 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 194 | Rev 198 | ||
---|---|---|---|
Line 96... | Line 96... | ||
96 | switch(item){ |
96 | switch(item){ |
97 | case IDOK: |
97 | case IDOK: |
98 | // Do a few checks first |
98 | // Do a few checks first |
99 | GetDlgItemText(dp, CATEGORYITEM, s, MAXFIELD); |
99 | GetDlgItemText(dp, CATEGORYITEM, s, MAXFIELD); |
100 | if (strlen(s) == 0) { |
100 | if (strlen(s) == 0) { |
101 | simplealert("Category must not be empty!"); |
101 | simplealert(_strdup("Category must not be empty!")); |
102 | return false; |
102 | return false; |
103 | } |
103 | } |
104 | GetDlgItemText(dp, TITLEITEM, s, MAXFIELD); |
104 | GetDlgItemText(dp, TITLEITEM, s, MAXFIELD); |
105 | if (strlen(s) == 0) { |
105 | if (strlen(s) == 0) { |
106 | simplealert("Title must not be empty!"); |
106 | simplealert(_strdup("Title must not be empty!")); |
107 | return false; |
107 | return false; |
108 | } |
108 | } |
109 | 109 | ||
110 | // Now begin |
110 | // Now begin |
111 | memset(&gdata->parm,0,sizeof(PARM_T)); |
111 | memset(&gdata->parm,0,sizeof(PARM_T)); |