You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by mt...@apache.org on 2009/04/22 12:08:09 UTC
svn commit: r767441 -
/commons/sandbox/runtime/trunk/src/main/native/os/win32/main.c
Author: mturk
Date: Wed Apr 22 10:08:08 2009
New Revision: 767441
URL: http://svn.apache.org/viewvc?rev=767441&view=rev
Log:
Do not display nasty message boxes
Modified:
commons/sandbox/runtime/trunk/src/main/native/os/win32/main.c
Modified: commons/sandbox/runtime/trunk/src/main/native/os/win32/main.c
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/native/os/win32/main.c?rev=767441&r1=767440&r2=767441&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/native/os/win32/main.c (original)
+++ commons/sandbox/runtime/trunk/src/main/native/os/win32/main.c Wed Apr 22 10:08:08 2009
@@ -323,6 +323,10 @@
return JNI_ERR;
if (ACR_InitClazzCache(env) != ACR_SUCCESS)
return JNI_ERR;
+ /* Do not display file not found messge boxes.
+ * Return the error to the application instead
+ */
+ SetErrorMode(GetErrorMode() | SEM_NOOPENFILEERRORBOX);
return JNI_VERSION_1_4;
}