From 7639ea31849e2fbc7654515818ecbc5ca53f9893 Mon Sep 17 00:00:00 2001 From: Dmitry Timoshkov Date: Thu, 14 Jan 2010 13:52:14 -0600 Subject: [PATCH] winmm: Buffer size must be at least MMIO_DEFAULTBUFFER (8192) bytes. 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 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/winmm/tests/mmio.c b/dlls/winmm/tests/mmio.c index 79ae031eb21..d7218eaa93e 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;