From 815ce87e2eda924610b5efb0abb0fbfb50f102bf Mon Sep 17 00:00:00 2001 From: Elias Naur Date: Tue, 12 Apr 2005 09:53:18 +0000 Subject: [PATCH] Win32: Fixed 64 bit warnings in Mouse.c --- src/native/win32/org_lwjgl_input_Mouse.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/native/win32/org_lwjgl_input_Mouse.c b/src/native/win32/org_lwjgl_input_Mouse.c index 60aea8af..f6f2afd7 100644 --- a/src/native/win32/org_lwjgl_input_Mouse.c +++ b/src/native/win32/org_lwjgl_input_Mouse.c @@ -336,10 +336,10 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_Win32Display_setNativeCursor if (handle_buffer != NULL) { cursor_handle = (HCURSOR *)(*env)->GetDirectBufferAddress(env, handle_buffer); cursor = *cursor_handle; - SetClassLong(getCurrentHWND(), GCL_HCURSOR, (LONG)cursor); + SetClassLongPtr(getCurrentHWND(), GCL_HCURSOR, (LONG_PTR)cursor); SetCursor(cursor); } else { - SetClassLong(getCurrentHWND(), GCL_HCURSOR, (LONG)NULL); + SetClassLongPtr(getCurrentHWND(), GCL_HCURSOR, (LONG_PTR)NULL); SetCursor(LoadCursor(NULL, IDC_ARROW)); } }