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
d6359edd
Commit
d6359edd
authored
Oct 14, 2008
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Oct 15, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shlwapi: Remove break after return (Smatch).
parent
095d068c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
2 deletions
+25
-2
assoc.c
dlls/shlwapi/assoc.c
+25
-2
No files found.
dlls/shlwapi/assoc.c
View file @
d6359edd
...
...
@@ -627,7 +627,31 @@ static HRESULT ASSOC_GetExecutable(IQueryAssociationsImpl *This,
if
(
!
pszExtra
)
{
hr
=
ASSOC_GetValue
(
hkeyShell
,
&
pszExtraFromReg
);
if
(
FAILED
(
hr
))
/* if no default action */
if
(
hr
==
E_FAIL
||
hr
==
HRESULT_FROM_WIN32
(
ERROR_FILE_NOT_FOUND
))
{
DWORD
rlen
;
ret
=
RegQueryInfoKeyW
(
hkeyShell
,
0
,
0
,
0
,
0
,
&
rlen
,
0
,
0
,
0
,
0
,
0
,
0
);
if
(
ret
!=
ERROR_SUCCESS
)
{
RegCloseKey
(
hkeyShell
);
return
HRESULT_FROM_WIN32
(
ret
);
}
rlen
++
;
pszExtraFromReg
=
HeapAlloc
(
GetProcessHeap
(),
0
,
rlen
*
sizeof
(
WCHAR
));
if
(
!
pszExtraFromReg
)
{
RegCloseKey
(
hkeyShell
);
return
E_OUTOFMEMORY
;
}
ret
=
RegEnumKeyExW
(
hkeyShell
,
0
,
pszExtraFromReg
,
&
rlen
,
0
,
NULL
,
NULL
,
NULL
);
if
(
ret
!=
ERROR_SUCCESS
)
{
RegCloseKey
(
hkeyShell
);
return
HRESULT_FROM_WIN32
(
ret
);
}
}
else
if
(
FAILED
(
hr
))
{
RegCloseKey
(
hkeyShell
);
return
hr
;
...
...
@@ -743,7 +767,6 @@ static HRESULT WINAPI IQueryAssociations_fnGetString(
return
hr
;
len
++
;
return
ASSOC_ReturnData
(
pszOut
,
pcchOut
,
path
,
len
);
break
;
}
case
ASSOCSTR_FRIENDLYAPPNAME
:
...
...
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