Windows: Cleanup

This commit is contained in:
Elias Naur 2006-07-15 19:55:42 +00:00
parent d9afe6b784
commit 5e012ce2e1
2 changed files with 1 additions and 4 deletions

View File

@ -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);
}

View File

@ -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);