Commit 08255295 authored by Paul van Schayck's avatar Paul van Schayck Committed by Alexandre Julliard

Reset the type dropdown when selecting another drive.

parent 7ed3f41c
......@@ -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);
......
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