Commit 95648743 authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

ntdll: Handle errno also for non ENOENT errors on lseek (Coverity).

parent ee12b4fe
......@@ -1547,9 +1547,9 @@ static int read_directory_getdents( int fd, IO_STATUS_BLOCK *io, void *buffer, U
else
{
old_pos = lseek( fd, 0, SEEK_CUR );
if (old_pos == -1 && errno == ENOENT)
if (old_pos == -1)
{
io->u.Status = STATUS_NO_MORE_FILES;
io->u.Status = (errno == ENOENT) ? STATUS_NO_MORE_FILES : FILE_GetNtStatus();
res = 0;
goto done;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment