mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-23 00:03: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
|
else
|
||||||
{
|
{
|
||||||
DWORD actual_length;
|
DWORD actual_length;
|
||||||
if (!WriteFile(desc, page, size, &actual_length, overlapped_ptr) &&
|
if (!WriteFile(desc, page, size, &actual_length, overlapped_ptr)
|
||||||
actual_length == size)
|
|| actual_length != size )
|
||||||
{
|
{
|
||||||
#ifdef SUPERSERVER_V2
|
#ifdef SUPERSERVER_V2
|
||||||
if (!GetOverlappedResult(desc, overlapped_ptr, &actual_length, TRUE)
|
if (!GetOverlappedResult(desc, overlapped_ptr, &actual_length, TRUE)
|
||||||
|
Loading…
Reference in New Issue
Block a user