mirror of
https://github.com/reactos/reactos.git
synced 2025-01-05 22:12:46 +00:00
[NOTEPAD]
- don't allow multiple instances of the find/replace dialog CORE-13744 svn path=/trunk/; revision=75797
This commit is contained in:
parent
8e31783cb7
commit
266bdc5e3d
1 changed files with 7 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue