Bruno Jesus : wsock32: Clarify cast operation (PVS-Studio).
Alexandre Julliard
julliard at wine.codeweavers.com
Fri Oct 24 08:32:35 CDT 2014
Module: wine
Branch: master
Commit: 2f38271fde329cbd7eeba09e3bd4e759d0871da4
URL: http://source.winehq.org/git/wine.git/?a=commit;h=2f38271fde329cbd7eeba09e3bd4e759d0871da4
Author: Bruno Jesus <00cpxxx at gmail.com>
Date: Fri Oct 24 02:10:45 2014 -0200
wsock32: Clarify cast operation (PVS-Studio).
---
dlls/wsock32/protocol.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/wsock32/protocol.c b/dlls/wsock32/protocol.c
index 416613a..16109e3 100644
--- a/dlls/wsock32/protocol.c
+++ b/dlls/wsock32/protocol.c
@@ -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);
More information about the wine-cvs
mailing list