Fixed flags handling in MCIAVI_mciInfo.
This commit is contained in:
parent
b6f4eccdbd
commit
0b3c79f712
|
@ -164,13 +164,13 @@ DWORD MCIAVI_mciInfo(UINT wDevID, DWORD dwFlags, LPMCI_DGV_INFO_PARMSW lpParms)
|
||||||
|
|
||||||
EnterCriticalSection(&wma->cs);
|
EnterCriticalSection(&wma->cs);
|
||||||
|
|
||||||
switch (dwFlags) {
|
if (dwFlags & MCI_INFO_PRODUCT)
|
||||||
case MCI_INFO_PRODUCT: str = wszAviPlayer; break;
|
str = wszAviPlayer;
|
||||||
case MCI_INFO_FILE: str = wma->lpFileName; break;
|
else if (dwFlags & MCI_INFO_FILE)
|
||||||
default:
|
str = wma->lpFileName;
|
||||||
|
else {
|
||||||
WARN("Don't know this info command (%lu)\n", dwFlags);
|
WARN("Don't know this info command (%lu)\n", dwFlags);
|
||||||
LeaveCriticalSection(&wma->cs);
|
ret = MCIERR_UNRECOGNIZED_COMMAND;
|
||||||
return MCIERR_UNRECOGNIZED_COMMAND;
|
|
||||||
}
|
}
|
||||||
if (str) {
|
if (str) {
|
||||||
if (strlenW(str) + 1 > lpParms->dwRetSize) {
|
if (strlenW(str) + 1 > lpParms->dwRetSize) {
|
||||||
|
|
Loading…
Reference in New Issue