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
c289a338
Commit
c289a338
authored
Sep 13, 2007
by
Andrew Talbot
Committed by
Alexandre Julliard
Sep 13, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: Constify some variables.
parent
2a839e96
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
8 deletions
+10
-8
shelllink.c
dlls/shell32/shelllink.c
+8
-6
shellole.c
dlls/shell32/shellole.c
+1
-1
shellord.c
dlls/shell32/shellord.c
+1
-1
No files found.
dlls/shell32/shelllink.c
View file @
c289a338
...
@@ -198,7 +198,7 @@ static inline IShellLinkImpl *impl_from_IObjectWithSite( IObjectWithSite *iface
...
@@ -198,7 +198,7 @@ static inline IShellLinkImpl *impl_from_IObjectWithSite( IObjectWithSite *iface
return
(
IShellLinkImpl
*
)((
char
*
)
iface
-
FIELD_OFFSET
(
IShellLinkImpl
,
lpvtblObjectWithSite
));
return
(
IShellLinkImpl
*
)((
char
*
)
iface
-
FIELD_OFFSET
(
IShellLinkImpl
,
lpvtblObjectWithSite
));
}
}
static
HRESULT
ShellLink_UpdatePath
(
LPWSTR
sPathRel
,
LPCWSTR
path
,
LPCWSTR
sWorkDir
,
LPWSTR
*
psPath
);
static
HRESULT
ShellLink_UpdatePath
(
LP
C
WSTR
sPathRel
,
LPCWSTR
path
,
LPCWSTR
sWorkDir
,
LPWSTR
*
psPath
);
/* strdup on the process heap */
/* strdup on the process heap */
static
inline
LPWSTR
HEAP_strdupAtoW
(
HANDLE
heap
,
DWORD
flags
,
LPCSTR
str
)
static
inline
LPWSTR
HEAP_strdupAtoW
(
HANDLE
heap
,
DWORD
flags
,
LPCSTR
str
)
...
@@ -656,7 +656,7 @@ static BOOL Stream_LoadVolume( LOCAL_VOLUME_INFO *vol, volume_info *volume )
...
@@ -656,7 +656,7 @@ static BOOL Stream_LoadVolume( LOCAL_VOLUME_INFO *vol, volume_info *volume )
return
TRUE
;
return
TRUE
;
}
}
static
LPWSTR
Stream_LoadPath
(
LPSTR
p
,
DWORD
maxlen
)
static
LPWSTR
Stream_LoadPath
(
LP
C
STR
p
,
DWORD
maxlen
)
{
{
int
len
=
0
,
wlen
;
int
len
=
0
,
wlen
;
LPWSTR
path
;
LPWSTR
path
;
...
@@ -1216,7 +1216,7 @@ static BOOL SHELL_ExistsFileW(LPCWSTR path)
...
@@ -1216,7 +1216,7 @@ static BOOL SHELL_ExistsFileW(LPCWSTR path)
* ShellLink_UpdatePath
* ShellLink_UpdatePath
* update absolute path in sPath using relative path in sPathRel
* update absolute path in sPath using relative path in sPathRel
*/
*/
static
HRESULT
ShellLink_UpdatePath
(
LPWSTR
sPathRel
,
LPCWSTR
path
,
LPCWSTR
sWorkDir
,
LPWSTR
*
psPath
)
static
HRESULT
ShellLink_UpdatePath
(
LP
C
WSTR
sPathRel
,
LPCWSTR
path
,
LPCWSTR
sWorkDir
,
LPWSTR
*
psPath
)
{
{
if
(
!
path
||
!
psPath
)
if
(
!
path
||
!
psPath
)
return
E_INVALIDARG
;
return
E_INVALIDARG
;
...
@@ -1510,7 +1510,8 @@ static HRESULT WINAPI IShellLinkA_fnSetShowCmd(IShellLinkA * iface, INT iShowCmd
...
@@ -1510,7 +1510,8 @@ static HRESULT WINAPI IShellLinkA_fnSetShowCmd(IShellLinkA * iface, INT iShowCmd
return
NOERROR
;
return
NOERROR
;
}
}
static
HRESULT
SHELL_PidlGeticonLocationA
(
IShellFolder
*
psf
,
LPITEMIDLIST
pidl
,
LPSTR
pszIconPath
,
int
cchIconPath
,
int
*
piIcon
)
static
HRESULT
SHELL_PidlGeticonLocationA
(
IShellFolder
*
psf
,
LPCITEMIDLIST
pidl
,
LPSTR
pszIconPath
,
int
cchIconPath
,
int
*
piIcon
)
{
{
LPCITEMIDLIST
pidlLast
;
LPCITEMIDLIST
pidlLast
;
...
@@ -1888,7 +1889,8 @@ static HRESULT WINAPI IShellLinkW_fnSetShowCmd(IShellLinkW * iface, INT iShowCmd
...
@@ -1888,7 +1889,8 @@ static HRESULT WINAPI IShellLinkW_fnSetShowCmd(IShellLinkW * iface, INT iShowCmd
return
S_OK
;
return
S_OK
;
}
}
static
HRESULT
SHELL_PidlGeticonLocationW
(
IShellFolder
*
psf
,
LPITEMIDLIST
pidl
,
LPWSTR
pszIconPath
,
int
cchIconPath
,
int
*
piIcon
)
static
HRESULT
SHELL_PidlGeticonLocationW
(
IShellFolder
*
psf
,
LPCITEMIDLIST
pidl
,
LPWSTR
pszIconPath
,
int
cchIconPath
,
int
*
piIcon
)
{
{
LPCITEMIDLIST
pidlLast
;
LPCITEMIDLIST
pidlLast
;
...
@@ -2123,7 +2125,7 @@ static HRESULT ShellLink_SetAdvertiseInfo(IShellLinkImpl *This, LPCWSTR str)
...
@@ -2123,7 +2125,7 @@ static HRESULT ShellLink_SetAdvertiseInfo(IShellLinkImpl *This, LPCWSTR str)
return
S_OK
;
return
S_OK
;
}
}
static
BOOL
ShellLink_GetVolumeInfo
(
LPWSTR
path
,
volume_info
*
volume
)
static
BOOL
ShellLink_GetVolumeInfo
(
LP
C
WSTR
path
,
volume_info
*
volume
)
{
{
const
int
label_sz
=
sizeof
volume
->
label
/
sizeof
volume
->
label
[
0
];
const
int
label_sz
=
sizeof
volume
->
label
/
sizeof
volume
->
label
[
0
];
WCHAR
drive
[
4
]
=
{
path
[
0
],
':'
,
'\\'
,
0
};
WCHAR
drive
[
4
]
=
{
path
[
0
],
':'
,
'\\'
,
0
};
...
...
dlls/shell32/shellole.c
View file @
c289a338
...
@@ -284,7 +284,7 @@ DWORD WINAPI SHCLSIDFromStringW (LPCWSTR clsid, CLSID *id)
...
@@ -284,7 +284,7 @@ DWORD WINAPI SHCLSIDFromStringW (LPCWSTR clsid, CLSID *id)
TRACE
(
"(%p(%s) %p)
\n
"
,
clsid
,
debugstr_w
(
clsid
),
id
);
TRACE
(
"(%p(%s) %p)
\n
"
,
clsid
,
debugstr_w
(
clsid
),
id
);
return
CLSIDFromString
((
LPWSTR
)
clsid
,
id
);
return
CLSIDFromString
((
LPWSTR
)
clsid
,
id
);
}
}
DWORD
WINAPI
SHCLSIDFromStringAW
(
LPVOID
clsid
,
CLSID
*
id
)
DWORD
WINAPI
SHCLSIDFromStringAW
(
LP
C
VOID
clsid
,
CLSID
*
id
)
{
{
if
(
SHELL_OsIsUnicode
())
if
(
SHELL_OsIsUnicode
())
return
SHCLSIDFromStringW
(
clsid
,
id
);
return
SHCLSIDFromStringW
(
clsid
,
id
);
...
...
dlls/shell32/shellord.c
View file @
c289a338
...
@@ -609,7 +609,7 @@ static INT CALLBACK SHADD_compare_mru(LPCVOID data1, LPCVOID data2, DWORD cbData
...
@@ -609,7 +609,7 @@ static INT CALLBACK SHADD_compare_mru(LPCVOID data1, LPCVOID data2, DWORD cbData
* RETURNS
* RETURNS
* position within MRU list that data was added.
* position within MRU list that data was added.
*/
*/
static
INT
SHADD_create_add_mru_data
(
HANDLE
mruhandle
,
LP
STR
doc_name
,
LP
STR
new_lnk_name
,
static
INT
SHADD_create_add_mru_data
(
HANDLE
mruhandle
,
LP
CSTR
doc_name
,
LPC
STR
new_lnk_name
,
LPSTR
buffer
,
INT
*
len
)
LPSTR
buffer
,
INT
*
len
)
{
{
LPSTR
ptr
;
LPSTR
ptr
;
...
...
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