msacm: Fix incorrect linked list traversing leading to memory/driver

instance leak.
This commit is contained in:
Alex Villacís Lasso 2006-01-16 21:30:52 +01:00 committed by Alexandre Julliard
parent 6906cbc1bf
commit 8cfa507f31
1 changed files with 1 additions and 1 deletions

View File

@ -123,7 +123,7 @@ MMRESULT WINAPI acmDriverClose(HACMDRIVER had, DWORD fdwClose)
padid = pad->obj.pACMDriverID;
/* remove driver from list */
for (tpad = &(padid->pACMDriverList); *tpad; *tpad = (*tpad)->pNextACMDriver) {
for (tpad = &(padid->pACMDriverList); *tpad; tpad = &((*tpad)->pNextACMDriver)) {
if (*tpad == pad) {
*tpad = (*tpad)->pNextACMDriver;
break;