projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2be4bec
)
- Call IsDialogMessage before TranslateAccelerators, so that the accelerator's output...
author
Alex Ionescu
<aionescu@gmail.com>
Fri, 23 Sep 2005 15:46:10 +0000
(15:46 +0000)
committer
Alex Ionescu
<aionescu@gmail.com>
Fri, 23 Sep 2005 15:46:10 +0000
(15:46 +0000)
svn path=/trunk/; revision=18016
reactos/subsys/system/notepad/main.c
patch
|
blob
|
history
diff --git
a/reactos/subsys/system/notepad/main.c
b/reactos/subsys/system/notepad/main.c
index
0b8191b
..
0b10eba
100644
(file)
--- a/
reactos/subsys/system/notepad/main.c
+++ b/
reactos/subsys/system/notepad/main.c
@@
-376,11
+376,12
@@
int PASCAL WinMain(HINSTANCE hInstance, HINSTANCE prev, LPSTR cmdline, int show)
while (GetMessage(&msg, 0, 0, 0))
{
- if (!TranslateAccelerator(Globals.hMainWnd, hAccel, &msg) && !IsDialogMessage(Globals.hFindReplaceDlg, &msg))
- {
- TranslateMessage(&msg);
- DispatchMessage(&msg);
- }
+ if (!IsDialogMessage(Globals.hFindReplaceDlg, &msg) &&
+ !TranslateAccelerator(Globals.hMainWnd, hAccel, &msg))
+ {
+ TranslateMessage(&msg);
+ DispatchMessage(&msg);
+ }
}
return msg.wParam;
}