From c5b91e0f4048f881ed9f3b2bf9ae815e4c396c8f Mon Sep 17 00:00:00 2001 From: Elias Naur Date: Mon, 10 Jul 2006 15:46:21 +0000 Subject: [PATCH] Windows: Pass correct class reference to CallStaticVoidMethod JNI --- src/native/win32/org_lwjgl_opengl_Display.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/native/win32/org_lwjgl_opengl_Display.c b/src/native/win32/org_lwjgl_opengl_Display.c index f13f44e9..870d528d 100644 --- a/src/native/win32/org_lwjgl_opengl_Display.c +++ b/src/native/win32/org_lwjgl_opengl_Display.c @@ -119,7 +119,7 @@ static LRESULT CALLBACK lwjglWindowProc(HWND hWnd, message_time = GetMessageTime(); handleMessage_method = (*env)->GetStaticMethodID(env, display_class_global, "handleMessage", "(JIJJJ)Z"); if (handleMessage_method != NULL) - if ((*env)->CallStaticBooleanMethod(env, NULL, handleMessage_method, (jlong)hWnd, (jint)msg, (jlong)wParam, (jlong)lParam, (jlong)message_time)) + if ((*env)->CallStaticBooleanMethod(env, display_class_global, handleMessage_method, (jlong)hWnd, (jint)msg, (jlong)wParam, (jlong)lParam, (jlong)message_time)) return 0; } }