mirror of
https://github.com/reactos/wine.git
synced 2024-11-24 12:20:07 +00:00
dpnet: Fixed bad pointer addition (Coverity).
This commit is contained in:
parent
fed06a562e
commit
000258a007
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user