Andrew Talbot : winecfg: Cast-qual warnings fix.

Alexandre Julliard julliard at wine.codeweavers.com
Sat Oct 7 11:30:35 CDT 2006


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

Author: Andrew Talbot <Andrew.Talbot at talbotville.com>
Date:   Fri Oct  6 21:41:22 2006 +0100

winecfg: Cast-qual warnings fix.

---

 programs/winecfg/appdefaults.c |    4 ++--
 programs/winecfg/drive.c       |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/programs/winecfg/appdefaults.c b/programs/winecfg/appdefaults.c
index 91d80b9..d3fb6e3 100644
--- a/programs/winecfg/appdefaults.c
+++ b/programs/winecfg/appdefaults.c
@@ -123,12 +123,12 @@ init_comboboxes (HWND dialog)
     }
 }
 
-static void add_listview_item(HWND listview, const WCHAR *text, void *association)
+static void add_listview_item(HWND listview, WCHAR *text, void *association)
 {
   LVITEMW item;
 
   item.mask = LVIF_TEXT | LVIF_PARAM;
-  item.pszText = (WCHAR*) text;
+  item.pszText = text;
   item.cchTextMax = lstrlenW(text);
   item.lParam = (LPARAM) association;
   item.iItem = ListView_GetItemCount(listview);
diff --git a/programs/winecfg/drive.c b/programs/winecfg/drive.c
index 34fee36..36d7a1d 100644
--- a/programs/winecfg/drive.c
+++ b/programs/winecfg/drive.c
@@ -139,7 +139,7 @@ static void set_drive_type( char letter,
     else
     {
         if (typeText)
-            RegSetValueEx( hKey, driveValue, 0, REG_SZ, (LPBYTE)typeText, strlen(typeText) + 1 );
+            RegSetValueEx( hKey, driveValue, 0, REG_SZ, (const BYTE *)typeText, strlen(typeText) + 1 );
         else
             RegDeleteValue( hKey, driveValue );
         RegCloseKey(hKey);




More information about the wine-cvs mailing list