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
42a8f382
Commit
42a8f382
authored
Jul 10, 2020
by
Zebediah Figura
Committed by
Alexandre Julliard
Jul 10, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msdmo: Avoid a redundant string -> GUID conversion.
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
fb644206
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
11 deletions
+1
-11
dmoreg.c
dlls/msdmo/dmoreg.c
+1
-11
No files found.
dlls/msdmo/dmoreg.c
View file @
42a8f382
...
...
@@ -75,12 +75,6 @@ static const WCHAR szCat2Fmt[] =
'%'
,
's'
,
'\\'
,
'%'
,
's'
,
0
};
static
const
WCHAR
szToGuidFmt
[]
=
{
'{'
,
'%'
,
's'
,
'}'
,
0
};
typedef
struct
{
IEnumDMO
IEnumDMO_iface
;
...
...
@@ -482,7 +476,6 @@ static HRESULT WINAPI IEnumDMO_fnNext(
{
HKEY
hkey
;
WCHAR
szNextKey
[
MAX_PATH
];
WCHAR
szGuidKey
[
64
];
WCHAR
szKey
[
MAX_PATH
];
WCHAR
szValue
[
MAX_PATH
];
DMO_PARTIAL_MEDIATYPE
types
[
100
];
...
...
@@ -490,7 +483,6 @@ static HRESULT WINAPI IEnumDMO_fnNext(
UINT
count
=
0
;
HRESULT
hres
=
S_OK
;
LONG
ret
;
GUID
guid
;
IEnumDMOImpl
*
This
=
impl_from_IEnumDMO
(
iface
);
...
...
@@ -514,7 +506,7 @@ static HRESULT WINAPI IEnumDMO_fnNext(
break
;
}
if
(
string_to_guid
(
szNextKey
,
&
guid
)
!=
S_OK
)
if
(
string_to_guid
(
szNextKey
,
&
pCLSID
[
count
]
)
!=
S_OK
)
continue
;
TRACE
(
"found %s
\n
"
,
debugstr_w
(
szNextKey
));
...
...
@@ -622,8 +614,6 @@ static HRESULT WINAPI IEnumDMO_fnNext(
lstrcpyW
(
Names
[
count
],
szValue
);
}
}
wsprintfW
(
szGuidKey
,
szToGuidFmt
,
szNextKey
);
CLSIDFromString
(
szGuidKey
,
&
pCLSID
[
count
]);
TRACE
(
"found match %s %s
\n
"
,
debugstr_w
(
szValue
),
debugstr_w
(
szNextKey
));
RegCloseKey
(
hkey
);
...
...
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