winecfg: Cast-qual warnings fix.

This commit is contained in:
Andrew Talbot 2006-10-06 21:41:22 +01:00 committed by Alexandre Julliard
parent 0f8706ec33
commit 91e3930c54
2 changed files with 3 additions and 3 deletions

View File

@ -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);

View File

@ -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);