You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by ap...@apache.org on 2007/08/30 17:08:07 UTC

svn commit: r571201 - /harmony/enhanced/classlib/trunk/modules/prefs/src/main/native/prefs/windows/PreferencesImpl.c

Author: apetrenko
Date: Thu Aug 30 08:08:07 2007
New Revision: 571201

URL: http://svn.apache.org/viewvc?rev=571201&view=rev
Log:
Patch for HARMONY-3617 "[classlib][prefs] API test org.apache.harmony.prefs.tests.java.util.prefs.AbstractPreferencesTest failed on Win x86_64 release build"

Modified:
    harmony/enhanced/classlib/trunk/modules/prefs/src/main/native/prefs/windows/PreferencesImpl.c

Modified: harmony/enhanced/classlib/trunk/modules/prefs/src/main/native/prefs/windows/PreferencesImpl.c
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/prefs/src/main/native/prefs/windows/PreferencesImpl.c?rev=571201&r1=571200&r2=571201&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/prefs/src/main/native/prefs/windows/PreferencesImpl.c (original)
+++ harmony/enhanced/classlib/trunk/modules/prefs/src/main/native/prefs/windows/PreferencesImpl.c Thu Aug 30 08:08:07 2007
@@ -124,8 +124,8 @@
   localErrorCode = checkErrorCode (errorCode);
   RegCloseKey (hKey);
   hymem_free_memory (keyStr);
-  (*env)->ReleasePrimitiveArrayCritical (env, jErrorCode, err, 0);
   err[java_util_prefs_RegistryPreferencesImpl_ERROR_CODE] = localErrorCode;
+  (*env)->ReleasePrimitiveArrayCritical (env, jErrorCode, err, 0);
   if (localErrorCode !=
       java_util_prefs_RegistryPreferencesImpl_RETURN_SUCCESS)
     {