Alex Villacís Lasso : msacm: Fix incorrect linked list traversing leading to memory/driver
Module: wine Branch: refs/heads/master Commit: 8cfa507f31923a717a00bbe8f7c882d6f63c756a URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=8cfa507f31923a717a00bbe8... Author: Alex Villacís Lasso <a_villacis(a)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;
participants (1)
-
Alexandre Julliard