commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject svn commit: r1099828 - /commons/sandbox/runtime/trunk/src/main/native/os/win32/registry.c
Date Thu, 05 May 2011 14:46:11 GMT
Author: mturk
Date: Thu May  5 14:46:11 2011
New Revision: 1099828

URL: http://svn.apache.org/viewvc?rev=1099828&view=rev
Log:
Use macros for throwing exceptions

Modified:
    commons/sandbox/runtime/trunk/src/main/native/os/win32/registry.c

Modified: commons/sandbox/runtime/trunk/src/main/native/os/win32/registry.c
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/native/os/win32/registry.c?rev=1099828&r1=1099827&r2=1099828&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/native/os/win32/registry.c (original)
+++ commons/sandbox/runtime/trunk/src/main/native/os/win32/registry.c Thu May  5 14:46:11
2011
@@ -96,7 +96,7 @@ ACR_WIN_EXPORT(jlong, RegistryKeyImpl, o
 
     if (rc) {
         skey = NULL;
-        AcrThrowByStatus(env, rc, 0);
+        ACR_THROW_SYS_ERROR(rc);
     }
     return P2J(skey);
 }
@@ -123,7 +123,7 @@ ACR_WIN_EXPORT(jlong, RegistryKeyImpl, c
 
     if (rc) {
         skey = 0;
-        AcrThrowByStatus(env, rc, 0);
+        ACR_THROW_SYS_ERROR(rc);
     }
     return P2J(skey);
 }



Mime
View raw message