Commit 5e78bab2 authored by Mikhail Maroukhine's avatar Mikhail Maroukhine Committed by Alexandre Julliard

user32: Fix compiler warnings with flag -Wcast-qual.

parent 9b933a35
...@@ -1038,11 +1038,11 @@ static void riff_find_chunk( DWORD chunk_id, DWORD chunk_type, const riff_chunk_ ...@@ -1038,11 +1038,11 @@ static void riff_find_chunk( DWORD chunk_id, DWORD chunk_type, const riff_chunk_
while (ptr < end) while (ptr < end)
{ {
if ((!chunk_type && *(DWORD *)ptr == chunk_id ) if ((!chunk_type && *(const DWORD *)ptr == chunk_id )
|| (chunk_type && *(DWORD *)ptr == chunk_type && *((DWORD *)ptr + 2) == chunk_id )) || (chunk_type && *(const DWORD *)ptr == chunk_type && *((const DWORD *)ptr + 2) == chunk_id ))
{ {
ptr += sizeof(DWORD); ptr += sizeof(DWORD);
chunk->data_size = (*(DWORD *)ptr + 1) & ~1; chunk->data_size = (*(const DWORD *)ptr + 1) & ~1;
ptr += sizeof(DWORD); ptr += sizeof(DWORD);
if (chunk_type == ANI_LIST_ID || chunk_type == ANI_RIFF_ID) ptr += sizeof(DWORD); if (chunk_type == ANI_LIST_ID || chunk_type == ANI_RIFF_ID) ptr += sizeof(DWORD);
chunk->data = ptr; chunk->data = ptr;
...@@ -1051,7 +1051,7 @@ static void riff_find_chunk( DWORD chunk_id, DWORD chunk_type, const riff_chunk_ ...@@ -1051,7 +1051,7 @@ static void riff_find_chunk( DWORD chunk_id, DWORD chunk_type, const riff_chunk_
} }
ptr += sizeof(DWORD); ptr += sizeof(DWORD);
ptr += (*(DWORD *)ptr + 1) & ~1; ptr += (*(const DWORD *)ptr + 1) & ~1;
ptr += sizeof(DWORD); ptr += sizeof(DWORD);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment