harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hinde...@apache.org
Subject svn commit: r939820 - /harmony/enhanced/java/trunk/classlib/modules/luni/src/main/native/luni/windows/OSFileSystemWin32.c
Date Fri, 30 Apr 2010 21:22:40 GMT
Author: hindessm
Date: Fri Apr 30 21:22:40 2010
New Revision: 939820

URL: http://svn.apache.org/viewvc?rev=939820&view=rev
Log:
Fix FileChannelWin32OnlyTest failure caused by my commit, r936256.

Modified:
    harmony/enhanced/java/trunk/classlib/modules/luni/src/main/native/luni/windows/OSFileSystemWin32.c

Modified: harmony/enhanced/java/trunk/classlib/modules/luni/src/main/native/luni/windows/OSFileSystemWin32.c
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/trunk/classlib/modules/luni/src/main/native/luni/windows/OSFileSystemWin32.c?rev=939820&r1=939819&r2=939820&view=diff
==============================================================================
--- harmony/enhanced/java/trunk/classlib/modules/luni/src/main/native/luni/windows/OSFileSystemWin32.c
(original)
+++ harmony/enhanced/java/trunk/classlib/modules/luni/src/main/native/luni/windows/OSFileSystemWin32.c
Fri Apr 30 21:22:40 2010
@@ -230,13 +230,11 @@ Java_org_apache_harmony_luni_platform_OS
       (*env)->ReleaseByteArrayElements(env, toRelease, buf, JNI_ABORT);
     }
 
-    if(bytesWritten == -1 && hyerror_last_error_number() == HYPORT_ERROR_FILE_LOCKED){
-        throwNewExceptionByName(env, "java/io/IOException", netLookupErrorString(env, HYPORT_ERROR_FILE_LOCKED));
-	break;
-    }
-    if(bytesWritten == -1){
+    if(bytesWritten < 0){
+        throwNewExceptionByName(env, "java/io/IOException",
+            netLookupErrorString(env, hyerror_last_error_number()));
         totalWritten = -1;
-        break;
+	break;
     }
     totalWritten += bytesWritten;
    



Mime
View raw message