diff --git a/programs/taskmgr/graph.c b/programs/taskmgr/graph.c index 84a73073ca9..bc37498e05c 100644 --- a/programs/taskmgr/graph.c +++ b/programs/taskmgr/graph.c @@ -439,7 +439,7 @@ Graph_WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) hdc = BeginPaint(hWnd, &ps); - WindowId = GetWindowLongPtr(hWnd, GWLP_ID); + WindowId = GetWindowLongPtrW(hWnd, GWLP_ID); switch (WindowId) { @@ -459,9 +459,9 @@ Graph_WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) return 0; } - + /* * We pass on all non-handled messages */ - return CallWindowProc((WNDPROC)OldGraphWndProc, hWnd, message, wParam, lParam); + return CallWindowProcW(OldGraphWndProc, hWnd, message, wParam, lParam); } diff --git a/programs/taskmgr/graphctl.c b/programs/taskmgr/graphctl.c index 2fe2a296874..c5395d50124 100644 --- a/programs/taskmgr/graphctl.c +++ b/programs/taskmgr/graphctl.c @@ -622,5 +622,5 @@ GraphCtrl_WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) /* * We pass on all non-handled messages */ - return CallWindowProc((WNDPROC)OldGraphCtrlWndProc, hWnd, message, wParam, lParam); + return CallWindowProcW(OldGraphCtrlWndProc, hWnd, message, wParam, lParam); }