Merge trunk (via DOM_AGNOSTIC3_BASE3 tag) DOM_AGNOSTIC3_BRANCH
authormhammond%skippinet.com.au
Mon, 12 Jun 2006 13:22:43 +0000
branchDOM_AGNOSTIC3_BRANCH
changeset 3662 4bc924c77a12
parent 3650 40517ea0cf2f
push idunknown
push userunknown
push dateunknown
Merge trunk (via DOM_AGNOSTIC3_BASE3 tag)
pr/src/io/prfile.c
--- a/pr/src/io/prfile.c
+++ b/pr/src/io/prfile.c
@@ -94,20 +94,19 @@ static PRInt32 PR_CALLBACK FileWrite(PRF
         PR_SetError(PR_IO_PENDING_ERROR, 0);
 	    rv = -1;
     }
     if (rv != 0)
     	return rv;
 
     count = 0;
 #if !defined(_PR_HAVE_O_APPEND)  /* Bugzilla: 4090, 276330 */
-    if ( PR_TRUE == fd->secret->appendMode ) {
-        rv = PR_Seek(fd, 0, PR_SEEK_END );
-        if ( -1 == rv )  {
-            return rv;
+    if (fd->secret->appendMode) {
+        if (PR_Seek64(fd, 0, PR_SEEK_END) == -1) {
+            return -1;
         }
     } /* if (fd->secret->appendMode...) */
 #endif /* _PR_HAVE_O_APPEND */
     while (amount > 0) {
 		temp = _PR_MD_WRITE(fd, buf, amount);
 		if (temp < 0) {
 			count = -1;
 			break;