(svn r1808) Use strcmp() instead of home brewed function str_eq()

This commit is contained in:
tron
2005-02-05 22:50:33 +00:00
parent 4d62bbf857
commit 7aae12d55d
6 changed files with 6 additions and 15 deletions

View File

@@ -896,7 +896,8 @@ static void QueryStringWndProc(Window *w, WindowEvent *e)
case 3: DeleteWindow(w); break;
case 4:
press_ok:;
if (str_eq(WP(w,querystr_d).buf, WP(w,querystr_d).buf + MAX_QUERYSTR_LEN) && !_do_edit_on_text_even_when_no_change_to_edit_box) {
if (strcmp(WP(w,querystr_d).buf, WP(w,querystr_d).buf + MAX_QUERYSTR_LEN) == 0 &&
!_do_edit_on_text_even_when_no_change_to_edit_box) {
DeleteWindow(w);
} else {
byte *buf = WP(w,querystr_d).buf;