Commit 2f38271f authored by Bruno Jesus's avatar Bruno Jesus Committed by Alexandre Julliard

wsock32: Clarify cast operation (PVS-Studio).

parent c7924e53
......@@ -191,7 +191,7 @@ INT WINAPI EnumProtocolsW(LPINT protocols, LPVOID buffer, LPDWORD buflen)
pi[i].dwMessageSize = wsabuf[i].dwMessageSize;
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;
}
HeapFree(GetProcessHeap(), 0, wsabuf);
......
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