msacm32: Don't add a format entry if it is decode-only.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com> Signed-off-by: Andrew Eikum <aeikum@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
ae34a0f540
commit
5e2c243a14
|
@ -57,11 +57,14 @@ static BOOL CALLBACK MSACM_FillFormatTagsCB(HACMDRIVERID hadid,
|
|||
|
||||
switch (affd->mode) {
|
||||
case WINE_ACMFF_TAG:
|
||||
if (paftd->cStandardFormats > 0)
|
||||
{
|
||||
if (SendDlgItemMessageW(affd->hWnd, IDD_ACMFORMATCHOOSE_CMB_FORMATTAG,
|
||||
CB_FINDSTRINGEXACT, -1,
|
||||
(LPARAM)paftd->szFormatTag) == CB_ERR)
|
||||
SendDlgItemMessageW(affd->hWnd, IDD_ACMFORMATCHOOSE_CMB_FORMATTAG,
|
||||
CB_ADDSTRING, 0, (LPARAM)paftd->szFormatTag);
|
||||
}
|
||||
break;
|
||||
case WINE_ACMFF_FORMAT:
|
||||
if (strcmpW(affd->szFormatTag, paftd->szFormatTag) == 0) {
|
||||
|
|
Loading…
Reference in New Issue