winmm: Correctly check for the installed default ioProcs.

This commit is contained in:
Eric Pouech 2009-08-29 14:23:24 +02:00 committed by Alexandre Julliard
parent 5a0deb25e1
commit 0ba570141d
1 changed files with 1 additions and 1 deletions

View File

@ -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 */