[NOTEPAD]

- don't allow multiple instances of the find/replace dialog

CORE-13744


svn path=/trunk/; revision=75797
This commit is contained in:
Kamil Hornicek 2017-09-08 19:09:48 +00:00
parent 8e31783cb7
commit 266bdc5e3d

View file

@ -1043,6 +1043,12 @@ typedef HWND (WINAPI *FINDPROC)(LPFINDREPLACE lpfr);
static VOID DIALOG_SearchDialog(FINDPROC pfnProc)
{
if (Globals.hFindReplaceDlg != NULL)
{
SetFocus(Globals.hFindReplaceDlg);
return;
}
ZeroMemory(&Globals.find, sizeof(Globals.find));
Globals.find.lStructSize = sizeof(Globals.find);
Globals.find.hwndOwner = Globals.hMainWnd;
@ -1057,7 +1063,7 @@ static VOID DIALOG_SearchDialog(FINDPROC pfnProc)
/* notify us of incoming events using hMainWnd Window Messages */
Globals.hFindReplaceDlg = pfnProc(&Globals.find);
assert(Globals.hFindReplaceDlg != 0);
assert(Globals.hFindReplaceDlg != NULL);
}
VOID DIALOG_Search(VOID)