Skip to content
Snippets Groups Projects
Commit c41af569 authored by Steve Lhomme's avatar Steve Lhomme Committed by Jean-Baptiste Kempf
Browse files

block: do not use pass uninitialized data to ReadFile()


All the others fields were uninitialized causing ReadFile() to fail.

Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent b637d46b
No related branches found
No related tags found
No related merge requests found
......@@ -348,7 +348,7 @@ ssize_t pread (int fd, void *buf, size_t count, off_t offset)
if (handle == INVALID_HANDLE_VALUE)
return -1;
OVERLAPPED olap; olap.Offset = offset; olap.OffsetHigh = (offset >> 32);
OVERLAPPED olap = {.Offset = offset, .OffsetHigh = (offset >> 32)};
DWORD written;
/* This braindead API will override the file pointer even if we specify
* an explicit read offset... So do not expect this to mix well with
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment