Reactos

[NOTEPAD] Don't handle main window accelerators in Find dialog (#7320)

authored by

Whindmar Saksit and committed by
GitHub
da26ec34 3fa740aa

+2 -2
+2 -2
base/applications/notepad/main.c
··· 637 637 638 638 while (GetMessage(&msg, NULL, 0, 0)) 639 639 { 640 - if (!TranslateAccelerator(Globals.hMainWnd, hAccel, &msg) && 641 - !IsDialogMessage(Globals.hFindReplaceDlg, &msg)) 640 + if ((!Globals.hFindReplaceDlg || !IsDialogMessage(Globals.hFindReplaceDlg, &msg)) && 641 + !TranslateAccelerator(Globals.hMainWnd, hAccel, &msg)) 642 642 { 643 643 TranslateMessage(&msg); 644 644 DispatchMessage(&msg);