Bug fixed

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@994 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
kichik 2002-09-13 14:10:21 +00:00
parent 362687501d
commit 102e4288d5

View file

@ -296,7 +296,7 @@ BOOL CALLBACK DialogProc(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam) {
case IDM_FIND: case IDM_FIND:
{ {
if (!uFindReplaceMsg) if (!uFindReplaceMsg)
uFindReplaceMsg = RegisterWindowMessage(FINDMSGSTRING); uFindReplaceMsg = RegisterWindowMessage(FINDMSGSTRING);
my_memset(&fr, 0, sizeof(FINDREPLACE)); my_memset(&fr, 0, sizeof(FINDREPLACE));
fr.lStructSize = sizeof(FINDREPLACE); fr.lStructSize = sizeof(FINDREPLACE);
fr.hwndOwner = hwndDlg; fr.hwndOwner = hwndDlg;
@ -310,7 +310,7 @@ BOOL CALLBACK DialogProc(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam) {
} }
} }
} }
if (msg == uFindReplaceMsg) { if (uFindReplaceMsg && msg == uFindReplaceMsg) {
LPFINDREPLACE lpfr = (LPFINDREPLACE)lParam; LPFINDREPLACE lpfr = (LPFINDREPLACE)lParam;
if (lpfr->Flags & FR_FINDNEXT) { if (lpfr->Flags & FR_FINDNEXT) {
WPARAM flags = FR_DOWN; WPARAM flags = FR_DOWN;