shell32: Remove unneeded address-of operators from array names

Andrew Talbot andrew.talbot at talbotville.com
Fri Jul 11 15:58:24 CDT 2008


Changelog:
    shell32: 
Remove 
unneeded 
address-
of 
operators 
from 
array 
names.

diff 
--
git 
a/dlls/shell32/control.c 
b/dlls/shell32/control.c
index 
2a58f67..dbebbd2 
100644
--- 
a/dlls/shell32/control.c
+++ 
b/dlls/shell32/control.c
@@ 
-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);
diff 
--
git 
a/dlls/shell32/cpanelfolder.c 
b/dlls/shell32/cpanelfolder.c
index 
e3f9ffb..93a79c5 
100644
--- 
a/dlls/shell32/cpanelfolder.c
+++ 
b/dlls/shell32/cpanelfolder.c
@@ 
-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;
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.winehq.org/pipermail/wine-patches/attachments/20080711/7e41e9df/attachment.htm 


More information about the wine-patches mailing list