Return-Path: Delivered-To: apmail-commons-commits-archive@minotaur.apache.org Received: (qmail 96676 invoked from network); 22 Apr 2009 10:08:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 22 Apr 2009 10:08:31 -0000 Received: (qmail 77369 invoked by uid 500); 22 Apr 2009 10:08:30 -0000 Delivered-To: apmail-commons-commits-archive@commons.apache.org Received: (qmail 77283 invoked by uid 500); 22 Apr 2009 10:08:30 -0000 Mailing-List: contact commits-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@commons.apache.org Delivered-To: mailing list commits@commons.apache.org Received: (qmail 77274 invoked by uid 99); 22 Apr 2009 10:08:30 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Apr 2009 10:08:30 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Apr 2009 10:08:29 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 3528E23889C4; Wed, 22 Apr 2009 10:08:09 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r767441 - /commons/sandbox/runtime/trunk/src/main/native/os/win32/main.c Date: Wed, 22 Apr 2009 10:08:09 -0000 To: commits@commons.apache.org From: mturk@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20090422100809.3528E23889C4@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org 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; }