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
15d591fa
Commit
15d591fa
authored
Sep 11, 2007
by
Andrew Talbot
Committed by
Alexandre Julliard
Sep 12, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: Constify some variables.
parent
66cd1fd7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
pidl.c
dlls/shell32/pidl.c
+4
-4
pidl.h
dlls/shell32/pidl.h
+2
-2
No files found.
dlls/shell32/pidl.c
View file @
15d591fa
...
...
@@ -2304,7 +2304,7 @@ void _ILFreeaPidl(LPITEMIDLIST * apidl, UINT cidl)
*
* copies an aPidl struct
*/
LPITEMIDLIST
*
_ILCopyaPidl
(
LPCITEMIDLIST
*
apidlsrc
,
UINT
cidl
)
LPITEMIDLIST
*
_ILCopyaPidl
(
const
LPCITEMIDLIST
*
apidlsrc
,
UINT
cidl
)
{
UINT
i
;
LPITEMIDLIST
*
apidldest
;
...
...
@@ -2324,7 +2324,7 @@ LPITEMIDLIST* _ILCopyaPidl(LPCITEMIDLIST * apidlsrc, UINT cidl)
*
* creates aPidl from CIDA
*/
LPITEMIDLIST
*
_ILCopyCidaToaPidl
(
LPITEMIDLIST
*
pidl
,
LPIDA
cida
)
LPITEMIDLIST
*
_ILCopyCidaToaPidl
(
LPITEMIDLIST
*
pidl
,
const
CIDA
*
cida
)
{
UINT
i
;
LPITEMIDLIST
*
dst
;
...
...
@@ -2334,10 +2334,10 @@ LPITEMIDLIST* _ILCopyCidaToaPidl(LPITEMIDLIST* pidl, LPIDA cida)
return
NULL
;
if
(
pidl
)
*
pidl
=
ILClone
((
LP
ITEMIDLIST
)(
&
((
LPBYTE
)
cida
)[
cida
->
aoffset
[
0
]]));
*
pidl
=
ILClone
((
LP
CITEMIDLIST
)(
&
((
const
BYTE
*
)
cida
)[
cida
->
aoffset
[
0
]]));
for
(
i
=
0
;
i
<
cida
->
cidl
;
i
++
)
dst
[
i
]
=
ILClone
((
LP
ITEMIDLIST
)(
&
((
LPBYTE
)
cida
)[
cida
->
aoffset
[
i
+
1
]]));
dst
[
i
]
=
ILClone
((
LP
CITEMIDLIST
)(
&
((
const
BYTE
*
)
cida
)[
cida
->
aoffset
[
i
+
1
]]));
return
dst
;
}
dlls/shell32/pidl.h
View file @
15d591fa
...
...
@@ -275,8 +275,8 @@ BOOL pcheck (LPCITEMIDLIST pidl);
* aPidl helper
*/
void
_ILFreeaPidl
(
LPITEMIDLIST
*
apidl
,
UINT
cidl
);
LPITEMIDLIST
*
_ILCopyaPidl
(
LPCITEMIDLIST
*
apidlsrc
,
UINT
cidl
);
LPITEMIDLIST
*
_ILCopyCidaToaPidl
(
LPITEMIDLIST
*
pidl
,
LPIDA
cida
);
LPITEMIDLIST
*
_ILCopyaPidl
(
const
LPCITEMIDLIST
*
apidlsrc
,
UINT
cidl
);
LPITEMIDLIST
*
_ILCopyCidaToaPidl
(
LPITEMIDLIST
*
pidl
,
const
CIDA
*
cida
);
BOOL
WINAPI
ILGetDisplayNameExA
(
LPSHELLFOLDER
psf
,
LPCITEMIDLIST
pidl
,
LPSTR
path
,
DWORD
type
);
BOOL
WINAPI
ILGetDisplayNameExW
(
LPSHELLFOLDER
psf
,
LPCITEMIDLIST
pidl
,
LPWSTR
path
,
DWORD
type
);
...
...
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