Skip to content
Snippets Groups Projects
Commit 3d5a2567 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard
Browse files

ntdll: Use correct size when checking iosb in NtFlushBuffersFile (Coverity).


Spotted by Nikolay.

Signed-off-by: default avatarJacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard's avatarAlexandre Julliard <julliard@winehq.org>
parent 9050b58f
Branches
Tags
No related merge requests found
......@@ -3305,7 +3305,7 @@ NTSTATUS WINAPI NtFlushBuffersFile( HANDLE hFile, IO_STATUS_BLOCK *io )
enum server_fd_type type;
int fd, needs_close;
if (!io || !virtual_check_buffer_for_write( io, sizeof(io) )) return STATUS_ACCESS_VIOLATION;
if (!io || !virtual_check_buffer_for_write( io, sizeof(*io) )) return STATUS_ACCESS_VIOLATION;
ret = server_get_unix_fd( hFile, FILE_WRITE_DATA, &fd, &needs_close, &type, NULL );
if (ret == STATUS_ACCESS_DENIED)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment