Fix installable driver removal.
This commit is contained in:
parent
5a8d76749a
commit
9b00fce480
|
@ -270,6 +270,7 @@ BOOL VFWAPI ICInstall(DWORD fccType, DWORD fccHandler, LPARAM lParam, LPSTR szDe
|
|||
BOOL VFWAPI ICRemove(DWORD fccType, DWORD fccHandler, UINT wFlags)
|
||||
{
|
||||
reg_driver** pdriver;
|
||||
reg_driver* drv;
|
||||
|
||||
TRACE("(%s,%s,0x%08x)\n", wine_dbgstr_fcc(fccType), wine_dbgstr_fcc(fccHandler), wFlags);
|
||||
|
||||
|
@ -284,9 +285,10 @@ BOOL VFWAPI ICRemove(DWORD fccType, DWORD fccHandler, UINT wFlags)
|
|||
return FALSE;
|
||||
|
||||
/* Remove the driver from the list */
|
||||
drv = *pdriver;
|
||||
*pdriver = (*pdriver)->next;
|
||||
HeapFree(GetProcessHeap(), 0, (*pdriver)->name);
|
||||
HeapFree(GetProcessHeap(), 0, *pdriver);
|
||||
HeapFree(GetProcessHeap(), 0, drv->name);
|
||||
HeapFree(GetProcessHeap(), 0, drv);
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue