Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2002-01

go32 vs win32: fileread/filewrite

2 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Aleksey V. Vaneev

Hello,

Just noticed some incompatibility in RTL: go32 vs win32. By logic, go32's fileread returns 0 on read error, while win32's returns -1. With filewrite situation's the same, it just returns bytes written, not -1 as expected. These can be checked out in rtl/go32v2/system.pp

Sorry, if I'm somehow mistaken.

Best regards,
Aleksey

Reply by email

Peter Vreman
to Aleksey V. Vaneev
you wrote 8 lines
Hello, Just noticed some incompatibility in RTL: go32 vs win32. By logic, go32's fileread returns 0 on read error, while win32's returns -1. With filewrite situation's the same, it just returns bytes written, not -1 as expected. These can be checked out in rtl/go32v2/system.pp Sorry, if I'm somehow mistaken.

Fixed

Peter

Reply by email