winmm/tests: mmioAdvance() returns a MMRESULT and not a size (PVS-Studio).

This commit is contained in:
Michael Stefaniuc 2015-03-04 09:57:48 +01:00 committed by Alexandre Julliard
parent c2eb206f99
commit d1162078ea
1 changed files with 2 additions and 1 deletions

View File

@ -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 */