commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject svn commit: r767441 - /commons/sandbox/runtime/trunk/src/main/native/os/win32/main.c
Date Wed, 22 Apr 2009 10:08:09 GMT
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;
 }



Mime
View raw message