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
7d43ac94
Commit
7d43ac94
authored
Oct 22, 2021
by
Nikolay Sivov
Committed by
Alexandre Julliard
Oct 22, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mfplat: Use wide strings for registry paths.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
030008f6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
main.c
dlls/mfplat/main.c
+2
-4
No files found.
dlls/mfplat/main.c
View file @
7d43ac94
...
...
@@ -5944,7 +5944,6 @@ static HRESULT resolver_create_registered_handler(HKEY hkey, REFIID riid, void *
static
HRESULT
resolver_get_bytestream_handler
(
IMFByteStream
*
stream
,
const
WCHAR
*
url
,
DWORD
flags
,
IMFByteStreamHandler
**
handler
)
{
static
const
char
streamhandlerspath
[]
=
"Software
\\
Microsoft
\\
Windows Media Foundation
\\
ByteStreamHandlers"
;
static
const
HKEY
hkey_roots
[
2
]
=
{
HKEY_CURRENT_USER
,
HKEY_LOCAL_MACHINE
};
WCHAR
*
mimeW
=
NULL
,
*
urlW
=
NULL
;
IMFAttributes
*
attributes
;
...
...
@@ -6008,7 +6007,7 @@ static HRESULT resolver_get_bytestream_handler(IMFByteStream *stream, const WCHA
const
WCHAR
*
namesW
[
2
]
=
{
mimeW
,
url_ext
};
HKEY
hkey
,
hkey_handler
;
if
(
RegOpenKey
A
(
hkey_roots
[
i
],
streamhandlerspath
,
&
hkey
))
if
(
RegOpenKey
W
(
hkey_roots
[
i
],
L"Software
\\
Microsoft
\\
Windows Media Foundation
\\
ByteStreamHandlers"
,
&
hkey
))
continue
;
for
(
j
=
0
;
j
<
ARRAY_SIZE
(
namesW
);
++
j
)
...
...
@@ -6045,7 +6044,6 @@ static HRESULT resolver_get_bytestream_handler(IMFByteStream *stream, const WCHA
static
HRESULT
resolver_create_scheme_handler
(
const
WCHAR
*
scheme
,
DWORD
flags
,
IMFSchemeHandler
**
handler
)
{
static
const
char
schemehandlerspath
[]
=
"Software
\\
Microsoft
\\
Windows Media Foundation
\\
SchemeHandlers"
;
static
const
HKEY
hkey_roots
[
2
]
=
{
HKEY_CURRENT_USER
,
HKEY_LOCAL_MACHINE
};
HRESULT
hr
=
MF_E_UNSUPPORTED_SCHEME
;
unsigned
int
i
;
...
...
@@ -6082,7 +6080,7 @@ static HRESULT resolver_create_scheme_handler(const WCHAR *scheme, DWORD flags,
hr
=
MF_E_UNSUPPORTED_SCHEME
;
if
(
RegOpenKey
A
(
hkey_roots
[
i
],
schemehandlerspath
,
&
hkey
))
if
(
RegOpenKey
W
(
hkey_roots
[
i
],
L"Software
\\
Microsoft
\\
Windows Media Foundation
\\
SchemeHandlers"
,
&
hkey
))
continue
;
if
(
!
RegOpenKeyW
(
hkey
,
scheme
,
&
hkey_handler
))
...
...
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