winmm: Buffer size must be at least MMIO_DEFAULTBUFFER (8192) bytes.
Dmitry Timoshkov
dmitry at codeweavers.com
Thu Jan 14 13:52:14 CST 2010
mmioOpen() with the length of buffer set to 0 expects the buffer to be at least
MMIO_DEFAULTBUFFER (8192) bytes in size, and using buffer of smaller size can
lead to various problems when the buffer actually gets used.
---
dlls/winmm/tests/mmio.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/winmm/tests/mmio.c b/dlls/winmm/tests/mmio.c
index 79ae031..d7218ea 100644
--- a/dlls/winmm/tests/mmio.c
+++ b/dlls/winmm/tests/mmio.c
@@ -199,7 +199,7 @@ static void test_mmioDescend(char *fname)
static void test_mmioOpen(char *fname)
{
- char buf[256];
+ char buf[MMIO_DEFAULTBUFFER];
MMRESULT ret;
HMMIO hmmio;
MMIOINFO mmio;
--
1.6.6
More information about the wine-patches
mailing list