wordpad: Only allow one find/replace window.

oldstable
Austin English 2009-11-22 12:19:26 -06:00 committed by Alexandre Julliard
parent 51eee4e7c9
commit 0b7903c46c
1 changed files with 7 additions and 0 deletions

View File

@ -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;