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
9a4f552f
Commit
9a4f552f
authored
Apr 13, 2005
by
Michael Jung
Committed by
Alexandre Julliard
Apr 13, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implemented the UnixFolder's IShellFolder2::CompareIDs method.
parent
4d7e99df
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
41 additions
and
3 deletions
+41
-3
shfldr_unixfs.c
dlls/shell32/shfldr_unixfs.c
+41
-3
No files found.
dlls/shell32/shfldr_unixfs.c
View file @
9a4f552f
...
@@ -515,11 +515,49 @@ static HRESULT WINAPI UnixFolder_IShellFolder2_BindToStorage(IShellFolder2* This
...
@@ -515,11 +515,49 @@ static HRESULT WINAPI UnixFolder_IShellFolder2_BindToStorage(IShellFolder2* This
return
E_NOTIMPL
;
return
E_NOTIMPL
;
}
}
static
HRESULT
WINAPI
UnixFolder_IShellFolder2_CompareIDs
(
IShellFolder2
*
This
,
LPARAM
lParam
,
static
HRESULT
WINAPI
UnixFolder_IShellFolder2_CompareIDs
(
IShellFolder2
*
iface
,
LPARAM
lParam
,
LPCITEMIDLIST
pidl1
,
LPCITEMIDLIST
pidl2
)
LPCITEMIDLIST
pidl1
,
LPCITEMIDLIST
pidl2
)
{
{
TRACE
(
"stub
\n
"
);
BOOL
isEmpty1
,
isEmpty2
;
return
E_NOTIMPL
;
HRESULT
hr
=
E_FAIL
;
LPITEMIDLIST
firstpidl
;
IShellFolder2
*
psf
;
int
compare
;
TRACE
(
"(iface=%p, lParam=%ld, pidl1=%p, pidl2=%p)
\n
"
,
iface
,
lParam
,
pidl1
,
pidl2
);
isEmpty1
=
!
pidl1
||
!
pidl1
->
mkid
.
cb
;
isEmpty2
=
!
pidl2
||
!
pidl2
->
mkid
.
cb
;
if
(
isEmpty1
&&
isEmpty2
)
return
MAKE_HRESULT
(
SEVERITY_SUCCESS
,
0
,
0
);
else
if
(
isEmpty1
)
return
MAKE_HRESULT
(
SEVERITY_SUCCESS
,
0
,
(
WORD
)
-
1
);
else
if
(
isEmpty2
)
return
MAKE_HRESULT
(
SEVERITY_SUCCESS
,
0
,
(
WORD
)
1
);
compare
=
CompareStringA
(
LOCALE_USER_DEFAULT
,
NORM_IGNORECASE
,
pidl1
->
mkid
.
abID
,
pidl1
->
mkid
.
cb
,
pidl2
->
mkid
.
abID
,
pidl2
->
mkid
.
cb
);
if
((
compare
==
CSTR_LESS_THAN
)
||
(
compare
==
CSTR_GREATER_THAN
))
return
MAKE_HRESULT
(
SEVERITY_SUCCESS
,
0
,
(
WORD
)(
compare
==
CSTR_LESS_THAN
)
?-
1
:
1
);
if
(
pidl1
->
mkid
.
cb
<
pidl2
->
mkid
.
cb
)
return
MAKE_HRESULT
(
SEVERITY_SUCCESS
,
0
,
(
WORD
)
-
1
);
else
if
(
pidl1
->
mkid
.
cb
>
pidl2
->
mkid
.
cb
)
return
MAKE_HRESULT
(
SEVERITY_SUCCESS
,
0
,
(
WORD
)
1
);
firstpidl
=
ILCloneFirst
(
pidl1
);
pidl1
=
ILGetNext
(
pidl1
);
pidl2
=
ILGetNext
(
pidl2
);
hr
=
IShellFolder2_BindToObject
(
iface
,
firstpidl
,
NULL
,
&
IID_IShellFolder
,
(
LPVOID
*
)
&
psf
);
if
(
SUCCEEDED
(
hr
))
{
hr
=
IShellFolder_CompareIDs
(
psf
,
lParam
,
pidl1
,
pidl2
);
IShellFolder2_Release
(
psf
);
}
ILFree
(
firstpidl
);
return
hr
;
}
}
static
HRESULT
WINAPI
UnixFolder_IShellFolder2_CreateViewObject
(
IShellFolder2
*
iface
,
HWND
hwndOwner
,
static
HRESULT
WINAPI
UnixFolder_IShellFolder2_CreateViewObject
(
IShellFolder2
*
iface
,
HWND
hwndOwner
,
...
...
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