Commit 48eae0bb authored by Dmitry Timoshkov's avatar Dmitry Timoshkov Committed by Alexandre Julliard

Call appropriate DefWindowProc in DDE client/server window procs

depending on whether a window proc is unicode or ANSI.
parent a2963dac
...@@ -1343,7 +1343,7 @@ static LRESULT CALLBACK WDML_ClientProc(HWND hwnd, UINT iMsg, WPARAM wParam, LPA ...@@ -1343,7 +1343,7 @@ static LRESULT CALLBACK WDML_ClientProc(HWND hwnd, UINT iMsg, WPARAM wParam, LPA
} }
return (IsWindowUnicode(hwnd)) ? return (IsWindowUnicode(hwnd)) ?
DefWindowProcA(hwnd, iMsg, wParam, lParam) : DefWindowProcW(hwnd, iMsg, wParam, lParam); DefWindowProcW(hwnd, iMsg, wParam, lParam) : DefWindowProcA(hwnd, iMsg, wParam, lParam);
} }
/***************************************************************** /*****************************************************************
......
...@@ -997,7 +997,8 @@ static LRESULT CALLBACK WDML_ServerConvProc(HWND hwndServer, UINT iMsg, WPARAM w ...@@ -997,7 +997,8 @@ static LRESULT CALLBACK WDML_ServerConvProc(HWND hwndServer, UINT iMsg, WPARAM w
} }
if (iMsg < WM_DDE_FIRST || iMsg > WM_DDE_LAST) if (iMsg < WM_DDE_FIRST || iMsg > WM_DDE_LAST)
{ {
return DefWindowProcA(hwndServer, iMsg, wParam, lParam); return IsWindowUnicode(hwndServer) ? DefWindowProcW(hwndServer, iMsg, wParam, lParam) :
DefWindowProcA(hwndServer, iMsg, wParam, lParam);
} }
EnterCriticalSection(&WDML_CritSect); EnterCriticalSection(&WDML_CritSect);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment