winecfg: Cast-qual warnings fix.
This commit is contained in:
parent
0f8706ec33
commit
91e3930c54
|
@ -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;
|
LVITEMW item;
|
||||||
|
|
||||||
item.mask = LVIF_TEXT | LVIF_PARAM;
|
item.mask = LVIF_TEXT | LVIF_PARAM;
|
||||||
item.pszText = (WCHAR*) text;
|
item.pszText = text;
|
||||||
item.cchTextMax = lstrlenW(text);
|
item.cchTextMax = lstrlenW(text);
|
||||||
item.lParam = (LPARAM) association;
|
item.lParam = (LPARAM) association;
|
||||||
item.iItem = ListView_GetItemCount(listview);
|
item.iItem = ListView_GetItemCount(listview);
|
||||||
|
|
|
@ -139,7 +139,7 @@ static void set_drive_type( char letter, DWORD type )
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (typeText)
|
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
|
else
|
||||||
RegDeleteValue( hKey, driveValue );
|
RegDeleteValue( hKey, driveValue );
|
||||||
RegCloseKey(hKey);
|
RegCloseKey(hKey);
|
||||||
|
|
Loading…
Reference in New Issue