mirror of
https://github.com/reactos/wine.git
synced 2025-04-03 00:21:39 +00:00
avifil32: Simplify comparing two unsigned ints (PVS-Studio).
This commit is contained in:
parent
39eede134e
commit
2bf09a9d25
@ -169,10 +169,9 @@ static HRESULT AVIFILE_RemoveStream(IAVIEditStreamImpl* const This, DWORD nr)
|
||||
/* remove part nr */
|
||||
IAVIStream_Release(This->pStreams[nr].pStream);
|
||||
This->nStreams--;
|
||||
if (This->nStreams - nr > 0) {
|
||||
memmove(This->pStreams + nr, This->pStreams + nr + 1,
|
||||
(This->nStreams - nr) * sizeof(EditStreamTable));
|
||||
}
|
||||
if (nr < This->nStreams)
|
||||
memmove(&This->pStreams[nr], &This->pStreams[nr + 1],
|
||||
(This->nStreams - nr) * sizeof(This->pStreams[0]));
|
||||
This->pStreams[This->nStreams].pStream = NULL;
|
||||
This->pStreams[This->nStreams].dwStart = 0;
|
||||
This->pStreams[This->nStreams].dwLength = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user