From 8cfa507f31923a717a00bbe8f7c882d6f63c756a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20Villac=C3=ADs=20Lasso?= Date: Mon, 16 Jan 2006 21:30:52 +0100 Subject: [PATCH] msacm: Fix incorrect linked list traversing leading to memory/driver instance leak. --- dlls/msacm/driver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/msacm/driver.c b/dlls/msacm/driver.c index bfcc533d8cc..eef78755622 100644 --- a/dlls/msacm/driver.c +++ b/dlls/msacm/driver.c @@ -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;