Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
52f374ad
Commit
52f374ad
authored
May 06, 2019
by
Nikolay Sivov
Committed by
Alexandre Julliard
May 06, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mfplat: Implement IsEndOfStream() for file stream.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
6da78ff6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
7 deletions
+16
-7
main.c
dlls/mfplat/main.c
+16
-7
No files found.
dlls/mfplat/main.c
View file @
52f374ad
...
...
@@ -2648,16 +2648,25 @@ static HRESULT WINAPI mfbytestream_SetCurrentPosition(IMFByteStream *iface, QWOR
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
mfbytestream_IsEndOfStream
(
IMFByteStream
*
iface
,
BOOL
*
endstream
)
static
HRESULT
WINAPI
bytestream_file_IsEndOfStream
(
IMFByteStream
*
iface
,
BOOL
*
ret
)
{
mfbytestream
*
This
=
impl_from_IMFByteStream
(
iface
);
struct
bytestream
*
stream
=
impl_from_IMFByteStream
(
iface
);
LARGE_INTEGER
position
,
length
;
HRESULT
hr
=
S_OK
;
FIXME
(
"%p, %p
\n
"
,
This
,
endstream
);
TRACE
(
"%p, %p.
\n
"
,
iface
,
ret
);
if
(
endstream
)
*
endstream
=
TRUE
;
EnterCriticalSection
(
&
stream
->
cs
);
return
S_OK
;
position
.
QuadPart
=
0
;
if
(
SetFilePointerEx
(
stream
->
hfile
,
position
,
&
length
,
FILE_END
))
*
ret
=
stream
->
position
>=
length
.
QuadPart
;
else
hr
=
HRESULT_FROM_WIN32
(
GetLastError
());
LeaveCriticalSection
(
&
stream
->
cs
);
return
hr
;
}
static
HRESULT
WINAPI
bytestream_file_Read
(
IMFByteStream
*
iface
,
BYTE
*
buffer
,
ULONG
size
,
ULONG
*
read_len
)
...
...
@@ -2771,7 +2780,7 @@ static const IMFByteStreamVtbl bytestream_file_vtbl =
mfbytestream_SetLength
,
mfbytestream_GetCurrentPosition
,
mfbytestream_SetCurrentPosition
,
mfbytestream
_IsEndOfStream
,
bytestream_file
_IsEndOfStream
,
bytestream_file_Read
,
bytestream_BeginRead
,
bytestream_EndRead
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment