[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

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();