diff --git a/src/native/windows/display.c b/src/native/windows/display.c index 75a8855f..996326d0 100644 --- a/src/native/windows/display.c +++ b/src/native/windows/display.c @@ -269,7 +269,7 @@ jobject getVersion(JNIEnv * env, char *driver) VS_FIXEDFILEINFO * fxdFileInfo; UINT uiLen = 0; - bRetval = VerQueryValue(lpInfoBuff, TEXT("\\"), &fxdFileInfo, &uiLen); + bRetval = VerQueryValue(lpInfoBuff, TEXT("\\"), (void *)&fxdFileInfo, &uiLen); if (bRetval != 0) ret = (*env)->NewObject(env, version_class, version_cons, fxdFileInfo->dwProductVersionMS, fxdFileInfo->dwProductVersionLS); } diff --git a/src/native/windows/org_lwjgl_opengl_Pbuffer.c b/src/native/windows/org_lwjgl_opengl_Pbuffer.c index 5fa9ff3a..810e695a 100644 --- a/src/native/windows/org_lwjgl_opengl_Pbuffer.c +++ b/src/native/windows/org_lwjgl_opengl_Pbuffer.c @@ -128,11 +128,8 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_WindowsPbufferPeerInfo_nCreate int origin_x = 0; int origin_y = 0; HWND dummy_hwnd; HDC dummy_hdc; - HGLRC dummy_context; HPBUFFERARB Pbuffer; HDC Pbuffer_dc; - HDC saved_hdc; - HGLRC saved_context; WGLExtensions extensions; const int *pBufferAttribs_ptr; WindowsPeerInfo *peer_info = (WindowsPeerInfo *)(*env)->GetDirectBufferAddress(env, peer_info_handle);