Marcus Meissner : dpnet: Fixed bad pointer addition (Coverity).
Alexandre Julliard
julliard at winehq.org
Mon Sep 26 16:15:11 CDT 2011
Module: wine
Branch: master
Commit: 000258a007f51431cd1692d42799b0b1a8a7a9f8
URL: http://source.winehq.org/git/wine.git/?a=commit;h=000258a007f51431cd1692d42799b0b1a8a7a9f8
Author: Marcus Meissner <marcus at jet.franken.de>
Date: Sat Sep 24 10:42:04 2011 +0200
dpnet: Fixed bad pointer addition (Coverity).
---
dlls/dpnet/peer.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/dpnet/peer.c b/dlls/dpnet/peer.c
index 5b89fb4..b3eb9cd 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)
{
More information about the wine-cvs
mailing list