From 899840c964ae0f725ce05204a87bb38b9a756d3a Mon Sep 17 00:00:00 2001 From: Mike McCormack Date: Wed, 31 May 2006 16:27:39 +0900 Subject: [PATCH] wineconsole: Use a Get/SetWindowLongPtr to store a pointer. --- programs/wineconsole/user.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/programs/wineconsole/user.c b/programs/wineconsole/user.c index db3dd95e9c7..90530554fac 100644 --- a/programs/wineconsole/user.c +++ b/programs/wineconsole/user.c @@ -871,7 +871,7 @@ static LRESULT WCUSER_Create(HWND hWnd, LPCREATESTRUCT lpcs) HMENU hSysMenu; data = lpcs->lpCreateParams; - SetWindowLong(hWnd, 0L, (DWORD)data); + SetWindowLongPtr(hWnd, 0L, (DWORD_PTR)data); PRIVATE(data)->hWnd = hWnd; hSysMenu = GetSystemMenu(hWnd, FALSE); @@ -1081,7 +1081,7 @@ static void WCUSER_GenerateMouseInputRecord(struct inner_data* data, COORD c, */ static LRESULT CALLBACK WCUSER_Proc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam) { - struct inner_data* data = (struct inner_data*)GetWindowLong(hWnd, 0); + struct inner_data* data = (struct inner_data*)GetWindowLongPtr(hWnd, 0); switch (uMsg) { @@ -1400,7 +1400,7 @@ enum init_return WCUSER_InitBackend(struct inner_data* data) wndclass.style = CS_DBLCLKS; wndclass.lpfnWndProc = WCUSER_Proc; wndclass.cbClsExtra = 0; - wndclass.cbWndExtra = sizeof(DWORD); + wndclass.cbWndExtra = sizeof(DWORD_PTR); wndclass.hInstance = GetModuleHandle(NULL); wndclass.hIcon = LoadIcon(0, IDI_WINLOGO); wndclass.hCursor = LoadCursor(0, IDC_ARROW);