oleaut32: Clarify cast operation (PVS-Studio).

This commit is contained in:
Michael Stefaniuc 2014-10-27 20:01:37 +01:00 committed by Alexandre Julliard
parent f3455da6ff
commit 39eede134e
1 changed files with 1 additions and 1 deletions

View File

@ -9144,7 +9144,7 @@ static DWORD WMSFT_append_arraydesc(ARRAYDESC *desc, WMSFT_TLBFile *file)
file->arraydesc_seg.data = heap_alloc(file->arraydesc_seg.len); file->arraydesc_seg.data = heap_alloc(file->arraydesc_seg.len);
else else
file->arraydesc_seg.data = heap_realloc(file->arraydesc_seg.data, file->arraydesc_seg.len); file->arraydesc_seg.data = heap_realloc(file->arraydesc_seg.data, file->arraydesc_seg.len);
encoded = (DWORD*)((char *)file->arraydesc_seg.data) + offs; encoded = (DWORD*)((char *)file->arraydesc_seg.data + offs);
encoded[0] = WMSFT_append_typedesc(&desc->tdescElem, file, NULL, NULL); encoded[0] = WMSFT_append_typedesc(&desc->tdescElem, file, NULL, NULL);
encoded[1] = desc->cDims | ((desc->cDims * 2 * sizeof(DWORD)) << 16); encoded[1] = desc->cDims | ((desc->cDims * 2 * sizeof(DWORD)) << 16);