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
81b9a83d
Commit
81b9a83d
authored
Aug 16, 2013
by
Nikolay Sivov
Committed by
Alexandre Julliard
Aug 16, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: Remove unnecessary WINAPI and some casts.
parent
d64697a3
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
8 additions
and
8 deletions
+8
-8
cpanelfolder.c
dlls/shell32/cpanelfolder.c
+1
-1
shell32_main.h
dlls/shell32/shell32_main.h
+1
-1
shelllink.c
dlls/shell32/shelllink.c
+3
-3
shfldr_desktop.c
dlls/shell32/shfldr_desktop.c
+1
-1
shfldr_fs.c
dlls/shell32/shfldr_fs.c
+1
-1
shfldr_mycomp.c
dlls/shell32/shfldr_mycomp.c
+1
-1
No files found.
dlls/shell32/cpanelfolder.c
View file @
81b9a83d
...
...
@@ -617,7 +617,7 @@ static HRESULT WINAPI ISF_ControlPanel_fnGetUIObjectOf(IShellFolder2 *iface, HWN
}
else
if
((
IsEqualIID
(
riid
,
&
IID_IShellLinkW
)
||
IsEqualIID
(
riid
,
&
IID_IShellLinkA
))
&&
(
cidl
==
1
))
{
pidl
=
ILCombine
(
This
->
pidlRoot
,
apidl
[
0
]);
hr
=
IShellLink_ConstructFromFile
(
NULL
,
riid
,
pidl
,
(
LPVOID
*
)
&
pObj
);
hr
=
IShellLink_ConstructFromFile
(
NULL
,
riid
,
pidl
,
&
pObj
);
SHFree
(
pidl
);
}
else
{
hr
=
E_NOINTERFACE
;
...
...
dlls/shell32/shell32_main.h
View file @
81b9a83d
...
...
@@ -86,7 +86,6 @@ HRESULT WINAPI IFSFolder_Constructor(IUnknown * pUnkOuter, REFIID riid, LPVOID *
HRESULT
WINAPI
IShellDispatch_Constructor
(
IUnknown
*
pUnkOuter
,
REFIID
riid
,
LPVOID
*
ppv
)
DECLSPEC_HIDDEN
;
HRESULT
WINAPI
IShellItem_Constructor
(
IUnknown
*
pUnkOuter
,
REFIID
riid
,
LPVOID
*
ppv
)
DECLSPEC_HIDDEN
;
HRESULT
WINAPI
IShellLink_Constructor
(
IUnknown
*
pUnkOuter
,
REFIID
riid
,
LPVOID
*
ppv
)
DECLSPEC_HIDDEN
;
HRESULT
WINAPI
IShellLink_ConstructFromFile
(
IUnknown
*
pUnkOuter
,
REFIID
riid
,
LPCITEMIDLIST
pidl
,
LPVOID
*
ppv
)
DECLSPEC_HIDDEN
;
HRESULT
WINAPI
ISF_Desktop_Constructor
(
IUnknown
*
pUnkOuter
,
REFIID
riid
,
LPVOID
*
ppv
)
DECLSPEC_HIDDEN
;
HRESULT
WINAPI
ISF_MyComputer_Constructor
(
IUnknown
*
pUnkOuter
,
REFIID
riid
,
LPVOID
*
ppv
)
DECLSPEC_HIDDEN
;
HRESULT
WINAPI
ISF_NetworkPlaces_Constructor
(
IUnknown
*
pUnkOuter
,
REFIID
riid
,
LPVOID
*
ppv
)
DECLSPEC_HIDDEN
;
...
...
@@ -109,6 +108,7 @@ HRESULT WINAPI CPanel_ExtractIconW(LPITEMIDLIST pidl, LPCWSTR pszFile, UINT nIco
HRESULT
WINAPI
IAutoComplete_Constructor
(
IUnknown
*
pUnkOuter
,
REFIID
riid
,
LPVOID
*
ppv
)
DECLSPEC_HIDDEN
;
HRESULT
WINAPI
ApplicationAssociationRegistration_Constructor
(
IUnknown
*
outer
,
REFIID
riid
,
LPVOID
*
ppv
)
DECLSPEC_HIDDEN
;
HRESULT
IShellLink_ConstructFromFile
(
IUnknown
*
pUnkOuter
,
REFIID
riid
,
LPCITEMIDLIST
pidl
,
IUnknown
**
ppv
)
DECLSPEC_HIDDEN
;
LPEXTRACTICONA
IExtractIconA_Constructor
(
LPCITEMIDLIST
)
DECLSPEC_HIDDEN
;
LPEXTRACTICONW
IExtractIconW_Constructor
(
LPCITEMIDLIST
)
DECLSPEC_HIDDEN
;
...
...
dlls/shell32/shelllink.c
View file @
81b9a83d
...
...
@@ -1295,8 +1295,8 @@ static HRESULT ShellLink_UpdatePath(LPCWSTR sPathRel, LPCWSTR path, LPCWSTR sWor
/**************************************************************************
* IShellLink_ConstructFromFile
*/
HRESULT
WINAPI
IShellLink_ConstructFromFile
(
IUnknown
*
pUnkOuter
,
REFIID
riid
,
LPCITEMIDLIST
pidl
,
LPVOID
*
ppv
)
HRESULT
IShellLink_ConstructFromFile
(
IUnknown
*
pUnkOuter
,
REFIID
riid
,
LPCITEMIDLIST
pidl
,
IUnknown
**
ppv
)
{
IShellLinkW
*
psl
;
...
...
@@ -1318,7 +1318,7 @@ HRESULT WINAPI IShellLink_ConstructFromFile( IUnknown* pUnkOuter, REFIID riid,
hr
=
E_FAIL
;
if
(
SUCCEEDED
(
hr
))
*
ppv
=
psl
;
*
ppv
=
(
IUnknown
*
)
psl
;
IPersistFile_Release
(
ppf
);
}
...
...
dlls/shell32/shfldr_desktop.c
View file @
81b9a83d
...
...
@@ -562,7 +562,7 @@ static HRESULT WINAPI ISF_Desktop_fnGetUIObjectOf (IShellFolder2 * iface,
IsEqualIID
(
riid
,
&
IID_IShellLinkA
))
&&
(
cidl
==
1
))
{
pidl
=
ILCombine
(
This
->
pidlRoot
,
apidl
[
0
]);
hr
=
IShellLink_ConstructFromFile
(
NULL
,
riid
,
pidl
,
(
LPVOID
*
)
&
pObj
);
hr
=
IShellLink_ConstructFromFile
(
NULL
,
riid
,
pidl
,
&
pObj
);
SHFree
(
pidl
);
}
else
...
...
dlls/shell32/shfldr_fs.c
View file @
81b9a83d
...
...
@@ -690,7 +690,7 @@ IShellFolder_fnGetUIObjectOf (IShellFolder2 * iface,
}
else
if
((
IsEqualIID
(
riid
,
&
IID_IShellLinkW
)
||
IsEqualIID
(
riid
,
&
IID_IShellLinkA
))
&&
(
cidl
==
1
))
{
pidl
=
ILCombine
(
This
->
pidlRoot
,
apidl
[
0
]);
hr
=
IShellLink_ConstructFromFile
(
NULL
,
riid
,
pidl
,
(
LPVOID
*
)
&
pObj
);
hr
=
IShellLink_ConstructFromFile
(
NULL
,
riid
,
pidl
,
&
pObj
);
SHFree
(
pidl
);
}
else
{
hr
=
E_NOINTERFACE
;
...
...
dlls/shell32/shfldr_mycomp.c
View file @
81b9a83d
...
...
@@ -563,7 +563,7 @@ static HRESULT WINAPI ISF_MyComputer_fnGetUIObjectOf (IShellFolder2 * iface,
IsEqualIID
(
riid
,
&
IID_IShellLinkA
))
&&
(
cidl
==
1
))
{
pidl
=
ILCombine
(
This
->
pidlRoot
,
apidl
[
0
]);
hr
=
IShellLink_ConstructFromFile
(
NULL
,
riid
,
pidl
,
(
LPVOID
*
)
&
pObj
);
hr
=
IShellLink_ConstructFromFile
(
NULL
,
riid
,
pidl
,
&
pObj
);
SHFree
(
pidl
);
}
else
...
...
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