Andrew Talbot : shell32: Cast-qual warnings fix.

Alexandre Julliard julliard at wine.codeweavers.com
Fri Sep 29 09:46:03 CDT 2006


Module: wine
Branch: master
Commit: 29ce6b37b5a6d38e81d53ba4d2d8a4abee89563c
URL:    http://source.winehq.org/git/?p=wine.git;a=commit;h=29ce6b37b5a6d38e81d53ba4d2d8a4abee89563c

Author: Andrew Talbot <Andrew.Talbot at talbotville.com>
Date:   Thu Sep 28 23:16:09 2006 +0100

shell32: Cast-qual warnings fix.

---

 dlls/shell32/shelllink.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/shell32/shelllink.c b/dlls/shell32/shelllink.c
index 550f3a0..ac0e8f8 100644
--- a/dlls/shell32/shelllink.c
+++ b/dlls/shell32/shelllink.c
@@ -2455,7 +2455,7 @@ ShellLink_QueryContextMenu( IContextMenu
                             UINT idCmdFirst, UINT idCmdLast, UINT uFlags )
 {
     IShellLinkImpl *This = impl_from_IContextMenu(iface);
-    static const WCHAR szOpen[] = { 'O','p','e','n',0 };
+    static WCHAR szOpen[] = { 'O','p','e','n',0 };
     MENUITEMINFOW mii;
     int id = 1;
 
@@ -2468,7 +2468,7 @@ ShellLink_QueryContextMenu( IContextMenu
     memset( &mii, 0, sizeof mii );
     mii.cbSize = sizeof mii;
     mii.fMask = MIIM_TYPE | MIIM_ID | MIIM_STATE;
-    mii.dwTypeData = (LPWSTR)szOpen;
+    mii.dwTypeData = szOpen;
     mii.cch = strlenW( mii.dwTypeData );
     mii.wID = idCmdFirst + id++;
     mii.fState = MFS_DEFAULT | MFS_ENABLED;




More information about the wine-cvs mailing list