From 157f97415918743ae57ada8847f93dc8a419bfb4 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Mon, 12 Sep 2005 15:38:56 +0000 Subject: [PATCH] Use Get/SetWindowLongPtr to access pointers in the window extra bytes. --- dlls/ddraw/surface_wndproc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/ddraw/surface_wndproc.c b/dlls/ddraw/surface_wndproc.c index 1476a871a29..3bfbb58248a 100644 --- a/dlls/ddraw/surface_wndproc.c +++ b/dlls/ddraw/surface_wndproc.c @@ -54,7 +54,7 @@ static LRESULT WINAPI DirectDrawSurface_WndProc(HWND hwnd, UINT msg, WPARAM wPar IDirectDrawSurfaceImpl *This; LRESULT ret; - This = (IDirectDrawSurfaceImpl *)GetWindowLongA(hwnd, 0); + This = (IDirectDrawSurfaceImpl *)GetWindowLongPtrA(hwnd, 0); if (This) { HWND window = This->ddraw_owner->window; @@ -96,7 +96,7 @@ static LRESULT WINAPI DirectDrawSurface_WndProc(HWND hwnd, UINT msg, WPARAM wPar if (msg == WM_CREATE) { CREATESTRUCTA *cs = (CREATESTRUCTA *)lParam; This = (IDirectDrawSurfaceImpl *)cs->lpCreateParams; - SetWindowLongA(hwnd, 0, (LONG)This); + SetWindowLongPtrA(hwnd, 0, (LONG_PTR)This); } ret = DefWindowProcA(hwnd, msg, wParam, lParam); }