From dfbb04df234290357d1a2a73d72145b2d429f1ed Mon Sep 17 00:00:00 2001 From: Eric Pouech Date: Sat, 11 May 2002 22:56:13 +0000 Subject: [PATCH] Fixed bug in acmFormatTagEnumW. --- dlls/msacm/format.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/msacm/format.c b/dlls/msacm/format.c index 2bc0ce24f99..14c5eeb5d59 100644 --- a/dlls/msacm/format.c +++ b/dlls/msacm/format.c @@ -781,8 +781,8 @@ MMRESULT WINAPI acmFormatTagEnumW(HACMDRIVER had, PACMFORMATTAGDETAILSW paftd, bPcmDone = TRUE; } if (!(fnCallback)((HACMDRIVERID)padid, paftd, dwInstance, padid->fdwSupport)) { - padid = NULL; /* to exist the two nested for loops */ - break; + acmDriverClose(had, 0); + return MMSYSERR_NOERROR; } } }