Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
89e187d3
Commit
89e187d3
authored
Feb 25, 2013
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Feb 26, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: Pass an IShellFolder2 to SHELL32_CompareIDs() to avoid casts.
parent
febda816
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
11 additions
and
14 deletions
+11
-14
cpanelfolder.c
dlls/shell32/cpanelfolder.c
+1
-1
shfldr.h
dlls/shell32/shfldr.h
+1
-1
shfldr_desktop.c
dlls/shell32/shfldr_desktop.c
+1
-2
shfldr_fs.c
dlls/shell32/shfldr_fs.c
+1
-1
shfldr_mycomp.c
dlls/shell32/shfldr_mycomp.c
+1
-1
shfldr_netplaces.c
dlls/shell32/shfldr_netplaces.c
+1
-1
shlfolder.c
dlls/shell32/shlfolder.c
+5
-7
No files found.
dlls/shell32/cpanelfolder.c
View file @
89e187d3
...
...
@@ -499,7 +499,7 @@ static HRESULT WINAPI ISF_ControlPanel_fnCompareIDs(IShellFolder2 *iface, LPARAM
int
nReturn
;
TRACE
(
"(%p)->(0x%08lx,pidl1=%p,pidl2=%p)
\n
"
,
This
,
lParam
,
pidl1
,
pidl2
);
nReturn
=
SHELL32_CompareIDs
(
(
IShellFolder
*
)
&
This
->
IShellFolder2_iface
,
lParam
,
pidl1
,
pidl2
);
nReturn
=
SHELL32_CompareIDs
(
&
This
->
IShellFolder2_iface
,
lParam
,
pidl1
,
pidl2
);
TRACE
(
"-- %i
\n
"
,
nReturn
);
return
nReturn
;
}
...
...
dlls/shell32/shfldr.h
View file @
89e187d3
...
...
@@ -46,7 +46,7 @@ HRESULT SHELL32_GetDisplayNameOfChild (IShellFolder2 * psf, LPCITEMIDLIST pidl,
HRESULT
SHELL32_BindToChild
(
LPCITEMIDLIST
pidlRoot
,
LPCWSTR
pathRoot
,
LPCITEMIDLIST
pidlComplete
,
REFIID
riid
,
LPVOID
*
ppvOut
)
DECLSPEC_HIDDEN
;
HRESULT
SHELL32_CompareIDs
(
IShellFolder
*
iface
,
LPARAM
lParam
,
LPCITEMIDLIST
pidl1
,
LPCITEMIDLIST
pidl2
)
DECLSPEC_HIDDEN
;
HRESULT
SHELL32_CompareIDs
(
IShellFolder2
*
iface
,
LPARAM
lParam
,
LPCITEMIDLIST
pidl1
,
LPCITEMIDLIST
pidl2
)
DECLSPEC_HIDDEN
;
LPITEMIDLIST
SHELL32_CreatePidlFromBindCtx
(
IBindCtx
*
pbc
,
LPCWSTR
path
)
DECLSPEC_HIDDEN
;
HRESULT
SHELL32_CreateExtensionUIObject
(
IShellFolder2
*
iface
,
LPCITEMIDLIST
pidl
,
REFIID
riid
,
LPVOID
*
ppvOut
)
DECLSPEC_HIDDEN
;
...
...
dlls/shell32/shfldr_desktop.c
View file @
89e187d3
...
...
@@ -396,11 +396,10 @@ static HRESULT WINAPI ISF_Desktop_fnCompareIDs (IShellFolder2 *iface,
LPARAM
lParam
,
LPCITEMIDLIST
pidl1
,
LPCITEMIDLIST
pidl2
)
{
IDesktopFolderImpl
*
This
=
impl_from_IShellFolder2
(
iface
);
IShellFolder
*
shell_folder
=
(
IShellFolder
*
)
iface
;
HRESULT
hr
;
TRACE
(
"(%p)->(0x%08lx,pidl1=%p,pidl2=%p)
\n
"
,
This
,
lParam
,
pidl1
,
pidl2
);
hr
=
SHELL32_CompareIDs
(
shell_folder
,
lParam
,
pidl1
,
pidl2
);
hr
=
SHELL32_CompareIDs
(
iface
,
lParam
,
pidl1
,
pidl2
);
TRACE
(
"-- 0x%08x
\n
"
,
hr
);
return
hr
;
}
...
...
dlls/shell32/shfldr_fs.c
View file @
89e187d3
...
...
@@ -503,7 +503,7 @@ IShellFolder_fnCompareIDs (IShellFolder2 * iface, LPARAM lParam,
int
nReturn
;
TRACE
(
"(%p)->(0x%08lx,pidl1=%p,pidl2=%p)
\n
"
,
This
,
lParam
,
pidl1
,
pidl2
);
nReturn
=
SHELL32_CompareIDs
(
(
IShellFolder
*
)
&
This
->
IShellFolder2_iface
,
lParam
,
pidl1
,
pidl2
);
nReturn
=
SHELL32_CompareIDs
(
&
This
->
IShellFolder2_iface
,
lParam
,
pidl1
,
pidl2
);
TRACE
(
"-- %i
\n
"
,
nReturn
);
return
nReturn
;
}
...
...
dlls/shell32/shfldr_mycomp.c
View file @
89e187d3
...
...
@@ -410,7 +410,7 @@ static HRESULT WINAPI ISF_MyComputer_fnCompareIDs (IShellFolder2 *iface,
HRESULT
hr
;
TRACE
(
"(%p)->(0x%08lx,pidl1=%p,pidl2=%p)
\n
"
,
This
,
lParam
,
pidl1
,
pidl2
);
hr
=
SHELL32_CompareIDs
((
IShellFolder
*
)
&
This
->
IShellFolder2_iface
,
lParam
,
pidl1
,
pidl2
);
hr
=
SHELL32_CompareIDs
(
&
This
->
IShellFolder2_iface
,
lParam
,
pidl1
,
pidl2
);
TRACE
(
"-- 0x%08x
\n
"
,
hr
);
return
hr
;
}
...
...
dlls/shell32/shfldr_netplaces.c
View file @
89e187d3
...
...
@@ -298,7 +298,7 @@ static HRESULT WINAPI ISF_NetworkPlaces_fnCompareIDs (IShellFolder2 * iface,
int
nReturn
;
TRACE
(
"(%p)->(0x%08lx,pidl1=%p,pidl2=%p)
\n
"
,
This
,
lParam
,
pidl1
,
pidl2
);
nReturn
=
SHELL32_CompareIDs
((
IShellFolder
*
)
&
This
->
IShellFolder2_iface
,
lParam
,
pidl1
,
pidl2
);
nReturn
=
SHELL32_CompareIDs
(
&
This
->
IShellFolder2_iface
,
lParam
,
pidl1
,
pidl2
);
TRACE
(
"-- %i
\n
"
,
nReturn
);
return
nReturn
;
}
...
...
dlls/shell32/shlfolder.c
View file @
89e187d3
...
...
@@ -482,16 +482,14 @@ HRESULT SHELL32_GetItemAttributes (IShellFolder * psf, LPCITEMIDLIST pidl, LPDWO
/***********************************************************************
* SHELL32_CompareIDs
*/
HRESULT
SHELL32_CompareIDs
(
IShellFolder
*
iface
,
LPARAM
lParam
,
LPCITEMIDLIST
pidl1
,
LPCITEMIDLIST
pidl2
)
HRESULT
SHELL32_CompareIDs
(
IShellFolder2
*
sf
,
LPARAM
lParam
,
LPCITEMIDLIST
pidl1
,
LPCITEMIDLIST
pidl2
)
{
int
type1
,
type2
;
int
type1
,
type2
;
char
szTemp1
[
MAX_PATH
];
char
szTemp2
[
MAX_PATH
];
HRESULT
nReturn
;
LPITEMIDLIST
firstpidl
,
nextpidl1
,
nextpidl2
;
LPITEMIDLIST
firstpidl
,
nextpidl1
,
nextpidl2
;
IShellFolder
*
psf
;
/* test for empty pidls */
...
...
@@ -539,7 +537,7 @@ HRESULT SHELL32_CompareIDs (IShellFolder * iface, LPARAM lParam, LPCITEMIDLIST p
}
else
if
(
isEmpty2
)
{
return
MAKE_HRESULT
(
SEVERITY_SUCCESS
,
0
,
1
);
/* optimizing end */
}
else
if
(
SUCCEEDED
(
IShellFolder_BindToObject
(
iface
,
firstpidl
,
NULL
,
&
IID_IShellFolder
,
(
LPVOID
*
)
&
psf
)))
{
}
else
if
(
SUCCEEDED
(
IShellFolder2_BindToObject
(
sf
,
firstpidl
,
NULL
,
&
IID_IShellFolder
,
(
void
**
)
&
psf
)))
{
nReturn
=
IShellFolder_CompareIDs
(
psf
,
lParam
,
nextpidl1
,
nextpidl2
);
IShellFolder_Release
(
psf
);
}
...
...
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