From 08255295e439c85e643246feadea2fe6ceb115b8 Mon Sep 17 00:00:00 2001 From: Paul van Schayck Date: Wed, 19 Jan 2005 16:59:48 +0000 Subject: [PATCH] Reset the type dropdown when selecting another drive. --- programs/winecfg/driveui.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/programs/winecfg/driveui.c b/programs/winecfg/driveui.c index 69e547aed8a..0fb462cecae 100644 --- a/programs/winecfg/driveui.c +++ b/programs/winecfg/driveui.c @@ -365,6 +365,8 @@ static void update_controls(HWND dialog) type = current_drive->type; if (type) { + SendDlgItemMessage(dialog, IDC_COMBO_TYPE, CB_RESETCONTENT, 0, 0); + for (i = 0; i < sizeof(type_pairs) / sizeof(struct drive_typemap); i++) { SendDlgItemMessage(dialog, IDC_COMBO_TYPE, CB_ADDSTRING, 0, (LPARAM) type_pairs[i].sDesc);