mirror of
https://github.com/reactos/wine.git
synced 2025-01-26 05:54:34 +00:00
winmm: Correctly check for the installed default ioProcs.
This commit is contained in:
parent
5a0deb25e1
commit
0ba570141d
@ -314,7 +314,7 @@ LPMMIOPROC MMIO_InstallIOProc(FOURCC fccIOProc, LPMMIOPROC pIOProc,
|
||||
}
|
||||
/* remove it, but only if it isn't builtin */
|
||||
if ((*ppListNode) >= defaultProcs &&
|
||||
(*ppListNode) < defaultProcs + sizeof(defaultProcs)) {
|
||||
(*ppListNode) < defaultProcs + sizeof(defaultProcs) / sizeof(defaultProcs[0])) {
|
||||
WARN("Tried to remove built-in mmio proc. Skipping\n");
|
||||
} else {
|
||||
/* Okay, nuke it */
|
||||
|
Loading…
x
Reference in New Issue
Block a user