From 0ba570141dd036898b33fdfa6116b5670b732214 Mon Sep 17 00:00:00 2001 From: Eric Pouech Date: Sat, 29 Aug 2009 14:23:24 +0200 Subject: [PATCH] winmm: Correctly check for the installed default ioProcs. --- dlls/winmm/mmio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/winmm/mmio.c b/dlls/winmm/mmio.c index a750bf263e6..2ad583355d7 100644 --- a/dlls/winmm/mmio.c +++ b/dlls/winmm/mmio.c @@ -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 */