Module: wine Branch: master Commit: fc13c70b783cbd42168857c8c396f78e76e94f6f URL: http://source.winehq.org/git/wine.git/?a=commit;h=fc13c70b783cbd42168857c8c3...
Author: Dylan Smith dylan.ah.smith@gmail.com Date: Sun Jan 4 00:29:10 2009 -0500
richedit: Mask window id on WM_COMMAND notifications.
---
dlls/riched20/editor.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/riched20/editor.c b/dlls/riched20/editor.c index 1f7c7db..abb9078 100644 --- a/dlls/riched20/editor.c +++ b/dlls/riched20/editor.c @@ -4289,7 +4289,7 @@ LRESULT WINAPI RichEdit10ANSIWndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM void ME_SendOldNotify(ME_TextEditor *editor, int nCode) { HWND hWnd = editor->hWnd; - SendMessageA(GetParent(hWnd), WM_COMMAND, (nCode<<16)|GetWindowLongW(hWnd, GWLP_ID), (LPARAM)hWnd); + SendMessageA(GetParent(hWnd), WM_COMMAND, MAKEWPARAM(GetWindowLongW(hWnd, GWLP_ID), nCode), (LPARAM)hWnd); }
void ME_LinkNotify(ME_TextEditor *editor, UINT msg, WPARAM wParam, LPARAM lParam)