wordpad: Only allow one find/replace window.
This commit is contained in:
parent
51eee4e7c9
commit
0b7903c46c
|
@ -1281,6 +1281,13 @@ static void dialog_find(LPFINDREPLACEW fr, BOOL replace)
|
|||
{
|
||||
static WCHAR findBuffer[MAX_STRING_LEN];
|
||||
|
||||
/* Allow only one search/replace dialog to open */
|
||||
if(hFindWnd != NULL)
|
||||
{
|
||||
SetActiveWindow(hFindWnd);
|
||||
return;
|
||||
}
|
||||
|
||||
ZeroMemory(fr, sizeof(FINDREPLACEW));
|
||||
fr->lStructSize = sizeof(FINDREPLACEW);
|
||||
fr->hwndOwner = hMainWnd;
|
||||
|
|
Loading…
Reference in New Issue