Fixed return type in native openURL

This commit is contained in:
Caspian Rychlik-Prince 2005-01-19 02:10:52 +00:00
parent bb9c040414
commit a9df33627e

View file

@ -95,7 +95,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_Win32SysImplementation_alert
* Method: openURL
* Signature: (Ljava/lang/String;)V
*/
JNIEXPORT void JNICALL Java_org_lwjgl_Win32SysImplementation_openURL
JNIEXPORT jboolean JNICALL Java_org_lwjgl_Win32SysImplementation_openURL
(JNIEnv * env, jobject ignored, jstring url)
{
STARTUPINFO si;
@ -127,12 +127,14 @@ JNIEXPORT void JNICALL Java_org_lwjgl_Win32SysImplementation_openURL
)
{
printfDebug("Failed to open URL %s\n", urlString);
return JNI_FALSE;
}
// Close process and thread handles.
CloseHandle( pi.hProcess );
CloseHandle( pi.hThread );
return JNI_TRUE;
}