8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-22 20:43:02 +01:00

Fix wrong error (write failure) detection

This commit is contained in:
hvlad 2005-02-17 07:28:03 +00:00
parent 82bd508875
commit 9cf932f04f

View File

@ -837,8 +837,8 @@ bool PIO_write(jrd_file* file, BufferDesc* bdb, Ods::pag* page, ISC_STATUS* stat
else
{
DWORD actual_length;
if (!WriteFile(desc, page, size, &actual_length, overlapped_ptr) &&
actual_length == size)
if (!WriteFile(desc, page, size, &actual_length, overlapped_ptr)
|| actual_length != size )
{
#ifdef SUPERSERVER_V2
if (!GetOverlappedResult(desc, overlapped_ptr, &actual_length, TRUE)