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
00a6a1ac
Commit
00a6a1ac
authored
Oct 31, 2014
by
Bruno Jesus
Committed by
Alexandre Julliard
Nov 03, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
compobj.dll16: Remove dead assignments in compobj.c (Cppcheck).
parent
9df1f2fa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
compobj.c
dlls/compobj.dll16/compobj.c
+2
-3
No files found.
dlls/compobj.dll16/compobj.c
View file @
00a6a1ac
...
...
@@ -668,18 +668,17 @@ HRESULT WINAPI CLSIDFromProgID16(LPCOLESTR16 progid, LPCLSID riid)
{
char
*
buf
,
buf2
[
80
];
LONG
buf2len
;
HRESULT
err
;
HKEY
xhkey
;
buf
=
HeapAlloc
(
GetProcessHeap
(),
0
,
strlen
(
progid
)
+
8
);
sprintf
(
buf
,
"%s
\\
CLSID"
,
progid
);
if
(
(
err
=
RegOpenKeyA
(
HKEY_CLASSES_ROOT
,
buf
,
&
xhkey
)
))
{
if
(
RegOpenKeyA
(
HKEY_CLASSES_ROOT
,
buf
,
&
xhkey
))
{
HeapFree
(
GetProcessHeap
(),
0
,
buf
);
return
CO_E_CLASSSTRING
;
}
HeapFree
(
GetProcessHeap
(),
0
,
buf
);
buf2len
=
sizeof
(
buf2
);
if
(
(
err
=
RegQueryValueA
(
xhkey
,
NULL
,
buf2
,
&
buf2len
)
))
{
if
(
RegQueryValueA
(
xhkey
,
NULL
,
buf2
,
&
buf2len
))
{
RegCloseKey
(
xhkey
);
return
CO_E_CLASSSTRING
;
}
...
...
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