winmm/tests: mmioAdvance() returns a MMRESULT and not a size (PVS-Studio)
Michael Stefaniuc
mstefani at redhat.de
Wed Mar 4 02:57:48 CST 2015
---
dlls/winmm/tests/mmio.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/dlls/winmm/tests/mmio.c b/dlls/winmm/tests/mmio.c
index 89146ef..fd5433c 100644
--- a/dlls/winmm/tests/mmio.c
+++ b/dlls/winmm/tests/mmio.c
@@ -870,7 +870,8 @@ static void test_mmio_buffer_pointer(void)
ok(mmio.pchEndRead == mmio.pchBuffer, "expected %p, got %p\n", mmio.pchBuffer, mmio.pchEndRead);
/* fill the buffer */
- size = mmioAdvance(hmmio, &mmio, MMIO_READ);
+ res = mmioAdvance(hmmio, &mmio, MMIO_READ);
+ ok(res == MMSYSERR_NOERROR, "mmioAdvance failed %x\n", res);
ok(mmio.pchEndRead-mmio.pchBuffer == sizeof(buffer), "got %d\n", (int)(mmio.pchEndRead-mmio.pchBuffer));
/* seeking to the same buffer chunk, the buffer is kept */
--
1.9.3
More information about the wine-patches
mailing list