Commit 157f9741 authored by Alexandre Julliard's avatar Alexandre Julliard

Use Get/SetWindowLongPtr to access pointers in the window extra

bytes.
parent 556a129a
...@@ -54,7 +54,7 @@ static LRESULT WINAPI DirectDrawSurface_WndProc(HWND hwnd, UINT msg, WPARAM wPar ...@@ -54,7 +54,7 @@ static LRESULT WINAPI DirectDrawSurface_WndProc(HWND hwnd, UINT msg, WPARAM wPar
IDirectDrawSurfaceImpl *This; IDirectDrawSurfaceImpl *This;
LRESULT ret; LRESULT ret;
This = (IDirectDrawSurfaceImpl *)GetWindowLongA(hwnd, 0); This = (IDirectDrawSurfaceImpl *)GetWindowLongPtrA(hwnd, 0);
if (This) { if (This) {
HWND window = This->ddraw_owner->window; HWND window = This->ddraw_owner->window;
...@@ -96,7 +96,7 @@ static LRESULT WINAPI DirectDrawSurface_WndProc(HWND hwnd, UINT msg, WPARAM wPar ...@@ -96,7 +96,7 @@ static LRESULT WINAPI DirectDrawSurface_WndProc(HWND hwnd, UINT msg, WPARAM wPar
if (msg == WM_CREATE) { if (msg == WM_CREATE) {
CREATESTRUCTA *cs = (CREATESTRUCTA *)lParam; CREATESTRUCTA *cs = (CREATESTRUCTA *)lParam;
This = (IDirectDrawSurfaceImpl *)cs->lpCreateParams; This = (IDirectDrawSurfaceImpl *)cs->lpCreateParams;
SetWindowLongA(hwnd, 0, (LONG)This); SetWindowLongPtrA(hwnd, 0, (LONG_PTR)This);
} }
ret = DefWindowProcA(hwnd, msg, wParam, lParam); ret = DefWindowProcA(hwnd, msg, wParam, lParam);
} }
......
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