[PATCH v4 1/1] msvcrt: Fix errno set on dup from read-only file.