Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
3d24e7de
Commit
3d24e7de
authored
Feb 25, 2019
by
Zebediah Figura
Committed by
Alexandre Julliard
Feb 26, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz/filesource: Set the sample length in IAsyncReader_SyncReadAligned().
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
f784cabd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
filesource.c
dlls/quartz/filesource.c
+5
-0
filesource.c
dlls/quartz/tests/filesource.c
+0
-3
No files found.
dlls/quartz/filesource.c
View file @
3d24e7de
...
...
@@ -1292,6 +1292,8 @@ static BOOL sync_read(HANDLE file, LONGLONG offset, LONG length, BYTE *buffer, D
ovl
.
u
.
s
.
Offset
=
(
DWORD
)
offset
;
ovl
.
u
.
s
.
OffsetHigh
=
offset
>>
32
;
*
read_len
=
0
;
ret
=
ReadFile
(
file
,
buffer
,
length
,
NULL
,
&
ovl
);
if
(
ret
||
GetLastError
()
==
ERROR_IO_PENDING
)
ret
=
GetOverlappedResult
(
file
,
&
ovl
,
read_len
,
TRUE
);
...
...
@@ -1331,6 +1333,9 @@ static HRESULT WINAPI FileAsyncReader_SyncReadAligned(IAsyncReader *iface, IMedi
hr
=
HRESULT_FROM_WIN32
(
GetLastError
());
}
if
(
SUCCEEDED
(
hr
))
IMediaSample_SetActualDataLength
(
sample
,
read_len
);
return
hr
;
}
...
...
dlls/quartz/tests/filesource.c
View file @
3d24e7de
...
...
@@ -687,7 +687,6 @@ static void test_sync_read_aligned(IAsyncReader *reader, IMemAllocator *allocato
ok
(
hr
==
S_OK
,
"Got hr %#x.
\n
"
,
hr
);
len
=
IMediaSample_GetActualDataLength
(
sample
);
todo_wine
ok
(
len
==
512
,
"Got length %d.
\n
"
,
len
);
for
(
i
=
0
;
i
<
512
;
i
++
)
...
...
@@ -702,7 +701,6 @@ todo_wine
ok
(
hr
==
S_FALSE
,
"Got hr %#x.
\n
"
,
hr
);
len
=
IMediaSample_GetActualDataLength
(
sample
);
todo_wine
ok
(
len
==
88
,
"Got length %d.
\n
"
,
len
);
for
(
i
=
0
;
i
<
88
;
i
++
)
...
...
@@ -717,7 +715,6 @@ todo_wine
ok
(
hr
==
S_OK
,
"Got hr %#x.
\n
"
,
hr
);
len
=
IMediaSample_GetActualDataLength
(
sample
);
todo_wine
ok
(
len
==
0
,
"Got length %d.
\n
"
,
len
);
IMediaSample_Release
(
sample
);
...
...
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