Author: ilardig
Date: Sun May 23 19:01:06 2010
New Revision: 47328
URL:
http://svn.reactos.org/svn/reactos?rev=47328&view=rev
Log:
[REGEDIT]
- Don't display "finished" message if search is aborted.
Patch by Katayama Hirofumi.
See issue #5421 for more details.
Modified:
trunk/reactos/base/applications/regedit/find.c
Modified: trunk/reactos/base/applications/regedit/find.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/regedit/…
==============================================================================
--- trunk/reactos/base/applications/regedit/find.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/regedit/find.c [iso-8859-1] Sun May 23 19:01:06 2010
@@ -684,7 +684,7 @@
free(pszFoundValueName);
SetFocus(g_pChildWnd->hListWnd);
}
- return fSuccess;
+ return fSuccess || s_bAbort;
}
static INT_PTR CALLBACK FindDialogProc(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM
lParam)
@@ -807,7 +807,7 @@
if (DialogBoxParam(GetModuleHandle(NULL), MAKEINTRESOURCE(IDD_FIND),
hWnd, FindDialogProc, 0) != 0)
{
- if (FindNext(hWnd) == FALSE)
+ if (!FindNext(hWnd))
{
TCHAR msg[128], caption[128];