comdlg32: Remove unneeded address-of operator from array name

Andrew Talbot andrew.talbot at talbotville.com
Mon Oct 31 16:19:16 CDT 2011


Changelog:
    comdlg32: Remove unneeded address-of operator from array name.

diff --git a/dlls/comdlg32/itemdlg.c b/dlls/comdlg32/itemdlg.c
index 9e90276..f700891 100644
--- a/dlls/comdlg32/itemdlg.c
+++ b/dlls/comdlg32/itemdlg.c
@@ -1350,7 +1350,7 @@ static void init_toolbar(FileDialogImpl *This, HWND hwnd)
     button[1].dwData = 0;
     button[1].iString = 0;
 
-    SendMessageW(htoolbar, TB_ADDBUTTONSW, 2, (LPARAM)&button);
+    SendMessageW(htoolbar, TB_ADDBUTTONSW, 2, (LPARAM)button);
     SendMessageW(htoolbar, TB_SETBUTTONSIZE, 0, MAKELPARAM(24,24));
     SendMessageW(htoolbar, TB_AUTOSIZE, 0, 0);
 }



More information about the wine-patches mailing list