From 0b3c79f712b095d2a87d1168ac38b13438f8451a Mon Sep 17 00:00:00 2001 From: Christian Costa Date: Tue, 26 Apr 2005 14:29:57 +0000 Subject: [PATCH] Fixed flags handling in MCIAVI_mciInfo. --- dlls/winmm/mciavi/info.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/dlls/winmm/mciavi/info.c b/dlls/winmm/mciavi/info.c index 69be75f413b..211f3551bf1 100644 --- a/dlls/winmm/mciavi/info.c +++ b/dlls/winmm/mciavi/info.c @@ -164,13 +164,13 @@ DWORD MCIAVI_mciInfo(UINT wDevID, DWORD dwFlags, LPMCI_DGV_INFO_PARMSW lpParms) EnterCriticalSection(&wma->cs); - switch (dwFlags) { - case MCI_INFO_PRODUCT: str = wszAviPlayer; break; - case MCI_INFO_FILE: str = wma->lpFileName; break; - default: + if (dwFlags & MCI_INFO_PRODUCT) + str = wszAviPlayer; + else if (dwFlags & MCI_INFO_FILE) + str = wma->lpFileName; + else { WARN("Don't know this info command (%lu)\n", dwFlags); - LeaveCriticalSection(&wma->cs); - return MCIERR_UNRECOGNIZED_COMMAND; + ret = MCIERR_UNRECOGNIZED_COMMAND; } if (str) { if (strlenW(str) + 1 > lpParms->dwRetSize) {