Dmitry Timoshkov : winmm: Buffer size must be at least MMIO_DEFAULTBUFFER ( 8192) bytes.

Alexandre Julliard julliard at winehq.org
Mon Jan 18 10:58:51 CST 2010


Module: wine
Branch: master
Commit: 7639ea31849e2fbc7654515818ecbc5ca53f9893
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=7639ea31849e2fbc7654515818ecbc5ca53f9893

Author: Dmitry Timoshkov <dmitry at codeweavers.com>
Date:   Thu Jan 14 13:52:14 2010 -0600

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 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;




More information about the wine-cvs mailing list