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
7f80d8e0
Commit
7f80d8e0
authored
Jul 14, 2008
by
Andrew Talbot
Committed by
Alexandre Julliard
Jul 16, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: Remove unneeded address-of operators from array names.
parent
bf76a39f
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
14 additions
and
14 deletions
+14
-14
control.c
dlls/shell32/control.c
+1
-1
cpanelfolder.c
dlls/shell32/cpanelfolder.c
+2
-2
debughlp.c
dlls/shell32/debughlp.c
+5
-5
pidl.c
dlls/shell32/pidl.c
+5
-5
shellord.c
dlls/shell32/shellord.c
+1
-1
No files found.
dlls/shell32/control.c
View file @
7f80d8e0
...
...
@@ -335,7 +335,7 @@ static void Control_RegisterRegistryApplets(HWND hWnd, CPanel *panel, HKEY hkey_
DWORD
nameLen
=
MAX_PATH
;
DWORD
valueLen
=
MAX_PATH
;
if
(
RegEnumValueW
(
hkey
,
idx
,
name
,
&
nameLen
,
NULL
,
NULL
,
(
LPBYTE
)
&
value
,
&
valueLen
)
!=
ERROR_SUCCESS
)
if
(
RegEnumValueW
(
hkey
,
idx
,
name
,
&
nameLen
,
NULL
,
NULL
,
(
LPBYTE
)
value
,
&
valueLen
)
!=
ERROR_SUCCESS
)
break
;
Control_LoadApplet
(
hWnd
,
value
,
panel
);
...
...
dlls/shell32/cpanelfolder.c
View file @
7f80d8e0
...
...
@@ -241,7 +241,7 @@ static LPITEMIDLIST _ILCreateCPanelApplet(LPCSTR name, LPCSTR displayName,
PIDLCPanelStruct
*
p
;
LPITEMIDLIST
pidl
;
PIDLDATA
tmp
;
int
size0
=
(
char
*
)
&
tmp
.
u
.
cpanel
.
szName
-
(
char
*
)
&
tmp
.
u
.
cpanel
;
int
size0
=
(
char
*
)
tmp
.
u
.
cpanel
.
szName
-
(
char
*
)
&
tmp
.
u
.
cpanel
;
int
size
=
size0
;
int
l
;
...
...
@@ -356,7 +356,7 @@ static int SHELL_RegisterRegistryCPanelApps(IEnumIDList* list, HKEY hkey_root, L
DWORD
nameLen
=
MAX_PATH
;
DWORD
valueLen
=
MAX_PATH
;
if
(
RegEnumValueA
(
hkey
,
idx
,
name
,
&
nameLen
,
NULL
,
NULL
,
(
LPBYTE
)
&
value
,
&
valueLen
)
!=
ERROR_SUCCESS
)
if
(
RegEnumValueA
(
hkey
,
idx
,
name
,
&
nameLen
,
NULL
,
NULL
,
(
LPBYTE
)
value
,
&
valueLen
)
!=
ERROR_SUCCESS
)
break
;
if
(
SHELL_RegisterCPanelApp
(
list
,
value
))
...
...
dlls/shell32/debughlp.c
View file @
7f80d8e0
...
...
@@ -60,7 +60,7 @@ static
LPPIDLDATA
_dbg_ILGetDataPointer
(
LPCITEMIDLIST
pidl
)
{
if
(
pidl
&&
pidl
->
mkid
.
cb
!=
0x00
)
return
(
LPPIDLDATA
)
&
(
pidl
->
mkid
.
abID
)
;
return
(
LPPIDLDATA
)
pidl
->
mkid
.
abID
;
return
NULL
;
}
...
...
@@ -82,21 +82,21 @@ LPSTR _dbg_ILGetTextPointer(LPCITEMIDLIST pidl)
case
PT_DRIVE1
:
case
PT_DRIVE2
:
case
PT_DRIVE3
:
return
(
LPSTR
)
&
(
pdata
->
u
.
drive
.
szDriveName
)
;
return
(
LPSTR
)
pdata
->
u
.
drive
.
szDriveName
;
case
PT_FOLDER
:
case
PT_FOLDER1
:
case
PT_VALUE
:
case
PT_IESPECIAL1
:
case
PT_IESPECIAL2
:
return
(
LPSTR
)
&
(
pdata
->
u
.
file
.
szNames
)
;
return
(
LPSTR
)
pdata
->
u
.
file
.
szNames
;
case
PT_WORKGRP
:
case
PT_COMP
:
case
PT_NETWORK
:
case
PT_NETPROVIDER
:
case
PT_SHARE
:
return
(
LPSTR
)
&
(
pdata
->
u
.
network
.
szNames
)
;
return
(
LPSTR
)
pdata
->
u
.
network
.
szNames
;
}
}
return
NULL
;
...
...
@@ -140,7 +140,7 @@ LPWSTR _dbg_ILGetTextPointerW(LPCITEMIDLIST pidl)
return
NULL
;
case
PT_VALUEW
:
return
(
LPWSTR
)
&
(
pdata
->
u
.
file
.
szNames
)
;
return
(
LPWSTR
)
pdata
->
u
.
file
.
szNames
;
}
}
return
NULL
;
...
...
dlls/shell32/pidl.c
View file @
7f80d8e0
...
...
@@ -1886,7 +1886,7 @@ DWORD _ILSimpleGetTextW (LPCITEMIDLIST pidl, LPWSTR szOut, UINT uOutSize)
LPPIDLDATA
_ILGetDataPointer
(
LPCITEMIDLIST
pidl
)
{
if
(
pidl
&&
pidl
->
mkid
.
cb
!=
0x00
)
return
(
LPPIDLDATA
)
&
(
pidl
->
mkid
.
abID
)
;
return
(
LPPIDLDATA
)
pidl
->
mkid
.
abID
;
return
NULL
;
}
...
...
@@ -1934,7 +1934,7 @@ LPWSTR _ILGetTextPointerW(LPCITEMIDLIST pidl)
return
NULL
;
case
PT_VALUEW
:
return
(
LPWSTR
)
&
(
pdata
->
u
.
file
.
szNames
)
;
return
(
LPWSTR
)
pdata
->
u
.
file
.
szNames
;
}
return
NULL
;
}
...
...
@@ -1964,21 +1964,21 @@ LPSTR _ILGetTextPointer(LPCITEMIDLIST pidl)
case
PT_DRIVE1
:
case
PT_DRIVE2
:
case
PT_DRIVE3
:
return
(
LPSTR
)
&
(
pdata
->
u
.
drive
.
szDriveName
)
;
return
(
LPSTR
)
pdata
->
u
.
drive
.
szDriveName
;
case
PT_FOLDER
:
case
PT_FOLDER1
:
case
PT_VALUE
:
case
PT_IESPECIAL1
:
case
PT_IESPECIAL2
:
return
(
LPSTR
)
&
(
pdata
->
u
.
file
.
szNames
)
;
return
(
LPSTR
)
pdata
->
u
.
file
.
szNames
;
case
PT_WORKGRP
:
case
PT_COMP
:
case
PT_NETWORK
:
case
PT_NETPROVIDER
:
case
PT_SHARE
:
return
(
LPSTR
)
&
(
pdata
->
u
.
network
.
szNames
)
;
return
(
LPSTR
)
pdata
->
u
.
network
.
szNames
;
}
return
NULL
;
}
...
...
dlls/shell32/shellord.c
View file @
7f80d8e0
...
...
@@ -718,7 +718,7 @@ void WINAPI SHAddToRecentDocs (UINT uFlags,LPCVOID pv)
/* See if we need to do anything.
*/
datalen
=
64
;
ret
=
SHADD_get_policy
(
"NoRecentDocsHistory"
,
&
type
,
&
data
,
&
datalen
);
ret
=
SHADD_get_policy
(
"NoRecentDocsHistory"
,
&
type
,
data
,
&
datalen
);
if
((
ret
>
0
)
&&
(
ret
!=
ERROR_FILE_NOT_FOUND
))
{
ERR
(
"Error %d getting policy
\"
NoRecentDocsHistory
\"\n
"
,
ret
);
return
;
...
...
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