[NOTEPAD] F3 should not display error message when the find string is empty (#7013)

This commit is contained in:
Whindmar Saksit 2024-06-12 13:01:42 +02:00 committed by GitHub
parent dc97c0d109
commit 3123589edd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -820,7 +820,7 @@ VOID DIALOG_SearchNext(BOOL bDown)
else
Globals.find.Flags &= ~FR_DOWN;
if (Globals.find.lpstrFindWhat != NULL)
if (Globals.find.lpstrFindWhat != NULL && *Globals.find.lpstrFindWhat)
NOTEPAD_FindNext(&Globals.find, FALSE, TRUE);
else
DIALOG_Search();