wsock32: Clarify cast operation (PVS-Studio).

This commit is contained in:
Bruno Jesus 2014-10-24 02:10:45 -02:00 committed by Alexandre Julliard
parent c7924e530d
commit 2f38271fde
1 changed files with 1 additions and 1 deletions

View File

@ -191,7 +191,7 @@ INT WINAPI EnumProtocolsW(LPINT protocols, LPVOID buffer, LPDWORD buflen)
pi[i].dwMessageSize = wsabuf[i].dwMessageSize; pi[i].dwMessageSize = wsabuf[i].dwMessageSize;
memcpy((char *)buffer + string_offset, wsabuf[i].szProtocol, string_size); memcpy((char *)buffer + string_offset, wsabuf[i].szProtocol, string_size);
pi[i].lpProtocol = (WCHAR *)(char *)buffer + string_offset; pi[i].lpProtocol = (WCHAR *)((char *)buffer + string_offset);
string_offset += string_size; string_offset += string_size;
} }
HeapFree(GetProcessHeap(), 0, wsabuf); HeapFree(GetProcessHeap(), 0, wsabuf);