From 000258a007f51431cd1692d42799b0b1a8a7a9f8 Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Sat, 24 Sep 2011 10:42:04 +0200 Subject: [PATCH] dpnet: Fixed bad pointer addition (Coverity). --- dlls/dpnet/peer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/dpnet/peer.c b/dlls/dpnet/peer.c index 5b89fb4842c..b3eb9cd1d3c 100644 --- a/dlls/dpnet/peer.c +++ b/dlls/dpnet/peer.c @@ -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) { -- 2.11.4.GIT