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
7bc4e49f
Commit
7bc4e49f
authored
Oct 30, 2019
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Oct 30, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mfreadwrite: Use wchar string literals instead of temp variables.
Signed-off-by:
Michael Stefaniuc
<
mstefani@winehq.org
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
c547d8c9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
main.c
dlls/mfreadwrite/main.c
+2
-4
No files found.
dlls/mfreadwrite/main.c
View file @
7bc4e49f
...
...
@@ -1123,8 +1123,6 @@ static HRESULT bytestream_get_url_hint(IMFByteStream *stream, WCHAR const **url)
static
const
UINT8
asfmagic
[]
=
{
0x30
,
0x26
,
0xb2
,
0x75
,
0x8e
,
0x66
,
0xcf
,
0x11
,
0xa6
,
0xd9
,
0x00
,
0xaa
,
0x00
,
0x62
,
0xce
,
0x6c
};
static
const
UINT8
wavmagic
[]
=
{
'R'
,
'I'
,
'F'
,
'F'
,
0x00
,
0x00
,
0x00
,
0x00
,
'W'
,
'A'
,
'V'
,
'E'
,
'f'
,
'm'
,
't'
,
' '
};
static
const
UINT8
wavmask
[]
=
{
0xff
,
0xff
,
0xff
,
0xff
,
0x00
,
0x00
,
0x00
,
0x00
,
0xff
,
0xff
,
0xff
,
0xff
,
0xff
,
0xff
,
0xff
,
0xff
};
static
const
WCHAR
asfW
[]
=
{
'.'
,
'a'
,
's'
,
'f'
,
0
};
static
const
WCHAR
wavW
[]
=
{
'.'
,
'w'
,
'a'
,
'v'
,
0
};
static
const
struct
stream_content_url_hint
{
const
UINT8
*
magic
;
...
...
@@ -1134,8 +1132,8 @@ static HRESULT bytestream_get_url_hint(IMFByteStream *stream, WCHAR const **url)
}
url_hints
[]
=
{
{
asfmagic
,
sizeof
(
asfmagic
),
asfW
},
{
wavmagic
,
sizeof
(
wavmagic
),
wavW
,
wavmask
},
{
asfmagic
,
sizeof
(
asfmagic
),
L".asf"
},
{
wavmagic
,
sizeof
(
wavmagic
),
L".wav"
,
wavmask
},
};
UINT8
buffer
[
4
*
sizeof
(
unsigned
int
)];
IMFAttributes
*
attributes
;
...
...
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