Commit 000258a0 authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

dpnet: Fixed bad pointer addition (Coverity).

parent fed06a56
......@@ -127,7 +127,7 @@ static HRESULT WINAPI IDirectPlay8PeerImpl_EnumServiceProviders(IDirectPlay8Peer
return DPNERR_BUFFERTOOSMALL;
}
pSPInfoBuffer->pwszName = (LPWSTR)(pSPInfoBuffer + sizeof(DPN_SERVICE_PROVIDER_INFO));
pSPInfoBuffer->pwszName = (LPWSTR)(pSPInfoBuffer + 1);
if(!pguidServiceProvider)
{
......
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