mirror of
https://github.com/reactos/wine.git
synced 2024-11-28 22:20:26 +00:00
notepad: Allow only one search/replace dialog to open.
This commit is contained in:
parent
3137600651
commit
ac6a18f1f6
@ -724,6 +724,13 @@ VOID DIALOG_SelectFont(VOID)
|
||||
|
||||
VOID DIALOG_Search(VOID)
|
||||
{
|
||||
/* Allow only one search/replace dialog to open */
|
||||
if(Globals.hFindReplaceDlg != NULL)
|
||||
{
|
||||
SetActiveWindow(Globals.hFindReplaceDlg);
|
||||
return;
|
||||
}
|
||||
|
||||
ZeroMemory(&Globals.find, sizeof(Globals.find));
|
||||
Globals.find.lStructSize = sizeof(Globals.find);
|
||||
Globals.find.hwndOwner = Globals.hMainWnd;
|
||||
@ -749,6 +756,13 @@ VOID DIALOG_SearchNext(VOID)
|
||||
|
||||
VOID DIALOG_Replace(VOID)
|
||||
{
|
||||
/* Allow only one search/replace dialog to open */
|
||||
if(Globals.hFindReplaceDlg != NULL)
|
||||
{
|
||||
SetActiveWindow(Globals.hFindReplaceDlg);
|
||||
return;
|
||||
}
|
||||
|
||||
ZeroMemory(&Globals.find, sizeof(Globals.find));
|
||||
Globals.find.lStructSize = sizeof(Globals.find);
|
||||
Globals.find.hwndOwner = Globals.hMainWnd;
|
||||
|
Loading…
Reference in New Issue
Block a user