winecfg: Cast-qual warnings fix

Andrew Talbot Andrew.Talbot at talbotville.com
Fri Oct 6 15:41:22 CDT 2006


Changelog:
    winecfg: Cast-qual warnings fix.

diff -urN a/programs/winecfg/appdefaults.c b/programs/winecfg/appdefaults.c
--- a/programs/winecfg/appdefaults.c	2006-10-05 22:08:01.000000000 +0100
+++ b/programs/winecfg/appdefaults.c	2006-10-06 21:11:06.000000000 +0100
@@ -123,12 +123,12 @@
     }
 }
 
-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 -urN a/programs/winecfg/drive.c b/programs/winecfg/drive.c
--- a/programs/winecfg/drive.c	2006-10-03 17:30:56.000000000 +0100
+++ b/programs/winecfg/drive.c	2006-10-06 21:24:38.000000000 +0100
@@ -139,7 +139,7 @@
     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-patches mailing list