Use Get/SetWindowLongPtr to access pointers in the window extra

bytes.
This commit is contained in:
Alexandre Julliard 2005-09-12 15:38:56 +00:00
parent 556a129afa
commit 157f974159
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}