From bf1061bfc60b0c62c8ac72a2cead114c238d678c Mon Sep 17 00:00:00 2001 From: James Hawkins Date: Tue, 10 May 2005 08:29:17 +0000 Subject: [PATCH] Remove old listbox code from driveui. --- programs/winecfg/driveui.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/programs/winecfg/driveui.c b/programs/winecfg/driveui.c index 75d01a5c96f..df01a0df91c 100644 --- a/programs/winecfg/driveui.c +++ b/programs/winecfg/driveui.c @@ -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);