merge in warren's changes from the old branch
git-svn-id: svn://10.0.0.236/branches/OJI_19980430_BRANCH@1122 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -28,9 +28,14 @@
|
||||
#include "toolbar2.h"
|
||||
#include "VerReg.h"
|
||||
#include "libmocha.h"
|
||||
#include "java.h"
|
||||
#include "ngdwtrst.h"
|
||||
|
||||
#if defined(OJI)
|
||||
#include "jvmmgr.h"
|
||||
#elif defined(JAVA)
|
||||
#include "java.h"
|
||||
#endif
|
||||
|
||||
extern "C" {
|
||||
#include "xpgetstr.h"
|
||||
extern int XP_ALERT_NETCASTER_NO_JS;
|
||||
@@ -1776,9 +1781,21 @@ void FEU_OpenNetcaster(void)
|
||||
|
||||
|
||||
if (regErr == REGERR_OK) {
|
||||
|
||||
BOOL javaEnabled = FALSE;
|
||||
#if defined(OJI)
|
||||
JVMMgr* jvmMgr = JVM_GetJVMMgr();
|
||||
if (jvmMgr) {
|
||||
NPIJVMPlugin* jvm = jvmMgr->GetJVM();
|
||||
if (jvm) {
|
||||
javaEnabled = jvm->GetJVMEnabled();
|
||||
}
|
||||
jvmMgr->Release();
|
||||
}
|
||||
#elif defined(JAVA)
|
||||
javaEnabled = LJ_GetJavaEnabled();
|
||||
#endif
|
||||
// Now check to see if Java and JS are enabled
|
||||
if (!LM_GetMochaEnabled() || !LJ_GetJavaEnabled()) {
|
||||
if (!LM_GetMochaEnabled() || !javaEnabled) {
|
||||
MessageBox(NULL, XP_GetString(XP_ALERT_NETCASTER_NO_JS), szLoadString(AFX_IDS_APP_TITLE), MB_OK | MB_ICONEXCLAMATION);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user