Commit bf1061bf authored by James Hawkins's avatar James Hawkins Committed by Alexandre Julliard

Remove old listbox code from driveui.

parent 0ade7579
......@@ -289,12 +289,6 @@ int fill_drives_list(HWND dialog)
lv_set_item(dialog, &item);
#if 0
/* the first SendMessage call adds the string and returns the index, the second associates that index with it */
index = SendMessage(GetDlgItem(dialog, IDC_LIST_DRIVES), LB_ADDSTRING ,(WPARAM) -1, (LPARAM) letter);
SendMessage(GetDlgItem(dialog, IDC_LIST_DRIVES), LB_SETITEMDATA, index, (LPARAM) &drives[i]);
#endif
HeapFree(GetProcessHeap(), 0, letter);
count++;
}
......@@ -378,10 +372,6 @@ void on_remove_click(HWND dialog)
WINE_ERR("unixpath: %s\n", drive->unixpath);
#if 0
drive = (struct drive *) SendDlgItemMessage(dialog, IDC_LIST_DRIVES, LB_GETITEMDATA, item, 0);
#endif
if (drive->letter == 'C')
{
DWORD result = MessageBox(dialog, "Are you sure you want to delete drive C?\n\nMost Windows applications expect drive C to exist, and will die messily if it doesn't. If you proceed remember to recreate it!", "", MB_YESNO | MB_ICONEXCLAMATION);
......
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