Alexandre Julliard : shdocvw: Fix an incorrect const typecast.

Alexandre Julliard julliard at winehq.org
Tue Aug 3 13:10:37 CDT 2010


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

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Tue Aug  3 19:23:55 2010 +0200

shdocvw: Fix an incorrect const typecast.

---

 dlls/shdocvw/iexplore.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/dlls/shdocvw/iexplore.c b/dlls/shdocvw/iexplore.c
index ea3fdf4..c8b93af 100644
--- a/dlls/shdocvw/iexplore.c
+++ b/dlls/shdocvw/iexplore.c
@@ -83,7 +83,7 @@ static HMENU get_fav_menu(HMENU menu)
     return GetSubMenu(menu, 1);
 }
 
-static LPCWSTR get_fav_url_from_id(HMENU menu, UINT id)
+static LPWSTR get_fav_url_from_id(HMENU menu, UINT id)
 {
     MENUITEMINFOW item;
 
@@ -98,11 +98,11 @@ static LPCWSTR get_fav_url_from_id(HMENU menu, UINT id)
 
 static void free_fav_menu_data(HMENU menu)
 {
-    LPCWSTR url;
+    LPWSTR url;
     int i;
 
     for(i = 0; (url = get_fav_url_from_id(menu, ID_BROWSE_GOTOFAV_FIRST + i)); i++)
-        heap_free((LPWSTR)url);
+        heap_free( url );
 }
 
 static int get_menu_item_count(HMENU menu)




More information about the wine-cvs mailing list