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:
parent
82bd508875
commit
9cf932f04f
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user