Eric Pouech : winmm: Correctly check for the installed default ioProcs.
Alexandre Julliard
julliard at winehq.org
Sat Aug 29 11:36:37 CDT 2009
Module: wine
Branch: master
Commit: 0ba570141dd036898b33fdfa6116b5670b732214
URL: http://source.winehq.org/git/wine.git/?a=commit;h=0ba570141dd036898b33fdfa6116b5670b732214
Author: Eric Pouech <eric.pouech at orange.fr>
Date: Sat Aug 29 14:23:24 2009 +0200
winmm: Correctly check for the installed default ioProcs.
---
dlls/winmm/mmio.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/winmm/mmio.c b/dlls/winmm/mmio.c
index a750bf2..2ad5833 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 */
More information about the wine-cvs
mailing list