Commit 8c335283 authored by Alexandre Julliard's avatar Alexandre Julliard

quartz: Use SetWindowLongPtr to store a pointer value.

parent 149259d4
......@@ -96,7 +96,7 @@ typedef struct VideoRendererImpl
static LRESULT CALLBACK VideoWndProcA(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
{
VideoRendererImpl* pVideoRenderer = (VideoRendererImpl*)GetWindowLongA(hwnd, 0);
VideoRendererImpl* pVideoRenderer = (VideoRendererImpl*)GetWindowLongPtrW(hwnd, 0);
LPRECT lprect = (LPRECT)lParam;
if (pVideoRenderer && pVideoRenderer->hWndMsgDrain)
......@@ -197,7 +197,7 @@ static BOOL CreateRenderingWindow(VideoRendererImpl* This)
return FALSE;
}
SetWindowLongA(This->hWnd, 0, (LONG)This);
SetWindowLongPtrW(This->hWnd, 0, (LONG_PTR)This);
return TRUE;
}
......
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