msvcrt: Set errno when close() is called on already closed fd.
commit67926ec8c344db4250f1e74a5943d0b8a536e950
authorPiotr Caban <piotr@codeweavers.com>
Tue, 28 Nov 2017 18:48:33 +0000 (28 19:48 +0100)
committerAlexandre Julliard <julliard@winehq.org>
Tue, 28 Nov 2017 19:39:29 +0000 (28 20:39 +0100)
tree29090198aeb2906cb7a58bd99387addf576905cc
parent53bab55d303dd8ee8ce696b94c47718feb7bc3d4
msvcrt: Set errno when close() is called on already closed fd.

Based on a patch by Olly Betts.

Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
dlls/msvcrt/file.c
dlls/msvcrt/tests/file.c