winecfg/audio: Fix uninitialized variable.

This commit is contained in:
Kirill K. Smirnov 2008-11-26 01:24:43 +03:00 committed by Alexandre Julliard
parent 5f4275970e
commit d540cf3c80
1 changed files with 4 additions and 0 deletions

View File

@ -304,6 +304,10 @@ static void initAudioDeviceTree(HWND hDlg)
insert.u.item.pszText = text;
insert.u.item.stateMask = TVIS_STATEIMAGEMASK;
insert.u.item.lParam = i + DRIVER_MASK;
if (isDriverSet(pAudioDrv->szDriver))
insert.u.item.state = INDEXTOSTATEIMAGEMASK(2);
else
insert.u.item.state = INDEXTOSTATEIMAGEMASK(1);
driver[i] = (HTREEITEM)SendDlgItemMessageW (hDlg, IDC_AUDIO_TREE, TVM_INSERTITEMW, 0, (LPARAM)&insert);
}