GWin32InputStream: ReadFile with wrong overapped offset
Submitted by Heiher
Link to original bug (#732937)
Description
g_input_stream_read* always returns same data in buffer, because ReadFile with wrong overapped offset(=0).
About ReadFile function: http://msdn.microsoft.com/en-us/library/windows/desktop/aa365467%28v=vs.85%29.aspx lpOverlapped [in, out, optional] For an hFile that supports byte offsets, if you use this parameter you must specify a byte offset at which to start reading from the file or device. This offset is specified by setting the Offset and OffsetHigh members of the OVERLAPPED structure. For an hFile that does not support byte offsets, Offset and OffsetHigh are ignored.