check that DosWrite() was successful before trying again (CVS 5125)

FossilOrigin-Name: 1ef6458bee4f0f77ded7c532f196d4c876ec9649
This commit is contained in:
pweilbacher 2008-05-12 16:56:13 +00:00
parent 498b87676b
commit 8bf23da5a3
3 changed files with 9 additions and 9 deletions

View File

@ -1,5 +1,5 @@
C Add\s"b"\sto\sfopen()\sin\sthe\shexio\stests\sso\sthat\sextra\scarriage\sreturns\sare\nnot\sinserted\son\swin32\sand\sOS/2.\s\sTest\sharness\schange\sonly\s-\sno\schanges\nto\sthe\score\sSQLite\scode.\s(CVS\s5124)
D 2008-05-12T16:17:42
C check\sthat\sDosWrite()\swas\ssuccessful\sbefore\strying\sagain\s(CVS\s5125)
D 2008-05-12T16:56:14
F Makefile.arm-wince-mingw32ce-gcc ac5f7b2cef0cd850d6f755ba6ee4ab961b1fadf7
F Makefile.in 8b9b8263852f0217157f9042b8e3dae7427ec739
F Makefile.linux-gcc d53183f4aa6a9192d249731c90dbdffbd2c68654
@ -118,7 +118,7 @@ F src/mutex_w32.c 133698096a2c4e81cd11ea6f4de7891c66f7b9f7
F src/os.c f9708b7ebd902fe6969fee5660a71d50e0244cad
F src/os.h 2ee8b0dec88f946c5371919ffa0f2fe4ac0de2e6
F src/os_common.h e8b748b2f2ecc8a498e50bfe5d8721f189c19d2a
F src/os_os2.c 30d9357149a56e45da2440b7cd3b91aa3770009e
F src/os_os2.c 0c3a5802bc4fdb7cb5f66771552b081c4e48a216
F src/os_unix.c a810e2aefdaddacf479407f76f8f4ca381d231b2
F src/os_win.c 3a60bddd07ea6f8adb2314dd5996ac97b988f403
F src/pager.c c4e0bcb1f451d2b8601e1cf50e680d88bf175055
@ -634,7 +634,7 @@ F www/tclsqlite.tcl 8be95ee6dba05eabcd27a9d91331c803f2ce2130
F www/vdbe.tcl 87a31ace769f20d3627a64fa1fade7fed47b90d0
F www/version3.tcl 890248cf7b70e60c383b0e84d77d5132b3ead42b
F www/whentouse.tcl fc46eae081251c3c181bd79c5faef8195d7991a5
P f204df3c3161ebe4f2c581715d708d0f35635c08
R 8b9e27eafa1c023546360b6979e7421a
U drh
Z dcccd95cc4ae97b1d904c2ea71894790
P 68cbc6b45c98ebaeca74e1ff5acc3ff7e34f45e9
R 156e3cd5515763b68ef15555dd9e1ead
U pweilbacher
Z c0d1dbf3d433f92440a17e805f99b443

View File

@ -1 +1 @@
68cbc6b45c98ebaeca74e1ff5acc3ff7e34f45e9
1ef6458bee4f0f77ded7c532f196d4c876ec9649

View File

@ -150,7 +150,7 @@ int os2Write(
}
assert( amt>0 );
while( amt > 0 &&
( rc = DosWrite( pFile->h, (PVOID)pBuf, amt, &wrote ) ) != NO_ERROR &&
( rc = DosWrite( pFile->h, (PVOID)pBuf, amt, &wrote ) ) == NO_ERROR &&
wrote > 0
){
amt -= wrote;