mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-01 07:37:02 +00:00
winmm/tests: mmioAdvance() returns a MMRESULT and not a size (PVS-Studio).
This commit is contained in:
parent
c2eb206f99
commit
d1162078ea
1 changed files with 2 additions and 1 deletions
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue