Commit 91e3930c authored by Andrew Talbot's avatar Andrew Talbot Committed by Alexandre Julliard

winecfg: Cast-qual warnings fix.

parent 0f8706ec
......@@ -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);
......
......@@ -139,7 +139,7 @@ static void set_drive_type( char letter, DWORD type )
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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment