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
fe8d66bf
Commit
fe8d66bf
authored
Jul 17, 2023
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz: Use nameless unions/structs.
parent
7dc37b2a
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
12 deletions
+5
-12
filesource.c
dlls/quartz/filesource.c
+5
-8
filtermapper.c
dlls/quartz/filtermapper.c
+0
-2
regsvr.c
dlls/quartz/regsvr.c
+0
-2
No files found.
dlls/quartz/filesource.c
View file @
fe8d66bf
...
...
@@ -18,9 +18,6 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#define NONAMELESSUNION
#define NONAMELESSSTRUCT
#include "quartz_private.h"
#include "wine/debug.h"
...
...
@@ -740,8 +737,8 @@ static HRESULT WINAPI FileAsyncReader_Request(IAsyncReader *iface, IMediaSample
assert
(
i
<
filter
->
max_requests
);
req
=
&
filter
->
requests
[
i
];
req
->
ovl
.
u
.
s
.
Offset
=
BYTES_FROM_MEDIATIME
(
start
);
req
->
ovl
.
u
.
s
.
OffsetHigh
=
BYTES_FROM_MEDIATIME
(
start
)
>>
32
;
req
->
ovl
.
Offset
=
BYTES_FROM_MEDIATIME
(
start
);
req
->
ovl
.
OffsetHigh
=
BYTES_FROM_MEDIATIME
(
start
)
>>
32
;
/* No reference is taken. */
if
(
ReadFile
(
filter
->
file
,
data
,
BYTES_FROM_MEDIATIME
(
end
-
start
),
NULL
,
&
req
->
ovl
)
...
...
@@ -789,7 +786,7 @@ static HRESULT WINAPI FileAsyncReader_WaitForNext(IAsyncReader *iface,
REFERENCE_TIME
start
,
end
;
IMediaSample_SetActualDataLength
(
req
->
sample
,
size
);
start
=
MEDIATIME_FROM_BYTES
(((
ULONGLONG
)
req
->
ovl
.
u
.
s
.
OffsetHigh
<<
32
)
+
req
->
ovl
.
u
.
s
.
Offset
);
start
=
MEDIATIME_FROM_BYTES
(((
ULONGLONG
)
req
->
ovl
.
OffsetHigh
<<
32
)
+
req
->
ovl
.
Offset
);
end
=
start
+
MEDIATIME_FROM_BYTES
(
size
);
IMediaSample_SetTime
(
req
->
sample
,
&
start
,
&
end
);
...
...
@@ -814,8 +811,8 @@ static BOOL sync_read(HANDLE file, LONGLONG offset, LONG length, BYTE *buffer, D
BOOL
ret
;
ovl
.
hEvent
=
(
HANDLE
)((
ULONG_PTR
)
CreateEventW
(
NULL
,
TRUE
,
FALSE
,
NULL
)
|
1
);
ovl
.
u
.
s
.
Offset
=
(
DWORD
)
offset
;
ovl
.
u
.
s
.
OffsetHigh
=
offset
>>
32
;
ovl
.
Offset
=
(
DWORD
)
offset
;
ovl
.
OffsetHigh
=
offset
>>
32
;
*
read_len
=
0
;
...
...
dlls/quartz/filtermapper.c
View file @
fe8d66bf
...
...
@@ -19,8 +19,6 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#define NONAMELESSUNION
#define NONAMELESSSTRUCT
#include <stdarg.h>
#include "windef.h"
...
...
dlls/quartz/regsvr.c
View file @
fe8d66bf
...
...
@@ -18,8 +18,6 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#define NONAMELESSUNION
#define NONAMELESSSTRUCT
#define COBJMACROS
#include <stdarg.h>
#include <string.h>
...
...
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