Commit 3138738a authored by Noomen Hamza's avatar Noomen Hamza Committed by Alexandre Julliard

Fixed two small bugs within MMIO_InstallIOProc and MMIO_Destroy.

parent 0872f30a
......@@ -312,9 +312,10 @@ static LPMMIOPROC MMIO_InstallIOProc(FOURCC fccIOProc, LPMMIOPROC pIOProc,
WARN("Tried to remove built-in mmio proc. Skipping\n");
} else {
/* Okay, nuke it */
struct IOProcList* ptmpNode = *ppListNode;
lpProc = (*ppListNode)->pIOProc;
HeapFree(GetProcessHeap(), 0, *ppListNode);
*ppListNode = (*ppListNode)->pNext;
HeapFree(GetProcessHeap(), 0, ptmpNode);
}
}
break;
......@@ -598,7 +599,7 @@ static BOOL MMIO_Destroy(LPWINE_MMIO wm)
for (m = &(iData->lpMMIO); *m && *m != wm; m = &(*m)->lpNext);
if (*m) {
*m = (*m)->lpNext;
HeapFree(GetProcessHeap(), 0, *m);
HeapFree(GetProcessHeap(), 0, wm);
wm = NULL;
}
LeaveCriticalSection(&iData->cs);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment