dpnet: Fixed bad pointer addition (Coverity).

This commit is contained in:
Marcus Meissner 2011-09-24 10:42:04 +02:00 committed by Alexandre Julliard
parent fed06a562e
commit 000258a007
1 changed files with 1 additions and 1 deletions

View File

@ -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)
{