Alex Villacís Lasso : msacm: Fix incorrect linked list traversing leading to memory/driver

Alexandre Julliard julliard at wine.codeweavers.com
Mon Jan 16 14:38:04 CST 2006


Module: wine
Branch: refs/heads/master
Commit: 8cfa507f31923a717a00bbe8f7c882d6f63c756a
URL:    http://source.winehq.org/git/?p=wine.git;a=commit;h=8cfa507f31923a717a00bbe8f7c882d6f63c756a

Author: Alex Villacís Lasso <a_villacis at palosanto.com>
Date:   Mon Jan 16 21:30:52 2006 +0100

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

---

 dlls/msacm/driver.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/msacm/driver.c b/dlls/msacm/driver.c
index bfcc533..eef7875 100644
--- a/dlls/msacm/driver.c
+++ b/dlls/msacm/driver.c
@@ -123,7 +123,7 @@ MMRESULT WINAPI acmDriverClose(HACMDRIVE
     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;




More information about the wine-cvs mailing list