Signed-off-by: Jacek Caban jacek@codeweavers.com ---
I wouldn't add iosb check (esp. virtual_check_buffer_for_write one), but we already have tests that would crash otherwise. Although I could use __TRY/__EXCEPT when setting those values, technically we should probably still check that in blocking case (and fail early, like in the patch).
dlls/ntdll/file.c | 21 ++++++++++++++------- dlls/ntdll/tests/file.c | 2 -- dlls/ntdll/tests/pipe.c | 2 +- 3 files changed, 15 insertions(+), 10 deletions(-)