Andrew Talbot : shell32: Write-strings warning fix.

Alexandre Julliard julliard at wine.codeweavers.com
Tue Jul 11 06:10:33 CDT 2006


Module: wine
Branch: refs/heads/master
Commit: 414c33365260f2f019c516e6101bdf2009e49cff
URL:    http://source.winehq.org/git/?p=wine.git;a=commit;h=414c33365260f2f019c516e6101bdf2009e49cff

Author: Andrew Talbot <Andrew.Talbot at talbotville.com>
Date:   Mon Jul 10 21:42:38 2006 +0100

shell32: Write-strings warning fix.

---

 dlls/shell32/shlview.c |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/dlls/shell32/shlview.c b/dlls/shell32/shlview.c
index 639306d..1385e36 100644
--- a/dlls/shell32/shlview.c
+++ b/dlls/shell32/shlview.c
@@ -779,19 +779,21 @@ static void ShellView_MergeFileMenu(IShe
 */
 
 static void ShellView_MergeViewMenu(IShellViewImpl * This, HMENU hSubMenu)
-{	MENUITEMINFOA	mii;
-
+{
 	TRACE("(%p)->(submenu=%p)\n",This,hSubMenu);
 
 	if(hSubMenu)
 	{ /*add a separator at the correct position in the menu*/
+	  MENUITEMINFOA mii;
+	  static char view[] = "View";
+
 	  _InsertMenuItem(hSubMenu, FCIDM_MENU_VIEW_SEP_OPTIONS, FALSE, 0, MFT_SEPARATOR, NULL, MFS_ENABLED);
 
 	  ZeroMemory(&mii, sizeof(mii));
 	  mii.cbSize = sizeof(mii);
 	  mii.fMask = MIIM_SUBMENU | MIIM_TYPE | MIIM_DATA;
 	  mii.fType = MFT_STRING;
-	  mii.dwTypeData = "View";
+	  mii.dwTypeData = view;
 	  mii.hSubMenu = LoadMenuA(shell32_hInstance, "MENU_001");
 	  InsertMenuItemA(hSubMenu, FCIDM_MENU_VIEW_SEP_OPTIONS, FALSE, &mii);
 	}




More information about the wine-cvs mailing list