=?UTF-8?Q?Andr=C3=A9=20Hentschel=20?=: dpnet: Increase reported buffer size .

Alexandre Julliard julliard at winehq.org
Tue Apr 2 13:38:36 CDT 2013


Module: wine
Branch: master
Commit: 9d6543b61279e06e90a4fffebf95e99646c1ba4a
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=9d6543b61279e06e90a4fffebf95e99646c1ba4a

Author: André Hentschel <nerv at dawncrow.de>
Date:   Mon Apr  1 16:21:53 2013 +0200

dpnet: Increase reported buffer size.

---

 dlls/dpnet/peer.c       |    2 +-
 dlls/dpnet/tests/peer.c |    3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/dlls/dpnet/peer.c b/dlls/dpnet/peer.c
index b3eb9cd..ef100a3 100644
--- a/dlls/dpnet/peer.c
+++ b/dlls/dpnet/peer.c
@@ -404,7 +404,7 @@ static HRESULT WINAPI IDirectPlay8PeerImpl_GetSPCaps(IDirectPlay8Peer *iface, co
     pdpspCaps->dwDefaultEnumTimeout = 1500;
     pdpspCaps->dwMaxEnumPayloadSize = 983;
     pdpspCaps->dwBuffersPerThread = 1;
-    pdpspCaps->dwSystemBufferSize = 8192;
+    pdpspCaps->dwSystemBufferSize = 0x10000;
 
     return DPN_OK;
 }
diff --git a/dlls/dpnet/tests/peer.c b/dlls/dpnet/tests/peer.c
index fc22f66..a9ab01d 100644
--- a/dlls/dpnet/tests/peer.c
+++ b/dlls/dpnet/tests/peer.c
@@ -140,7 +140,8 @@ static void test_get_sp_caps(void)
     ok(caps.dwDefaultEnumTimeout == 1500, "expected 1500, got %d\n", caps.dwDefaultEnumTimeout);
     ok(caps.dwMaxEnumPayloadSize == 983, "expected 983, got %d\n", caps.dwMaxEnumPayloadSize);
     ok(caps.dwBuffersPerThread == 1, "expected 1, got %d\n", caps.dwBuffersPerThread);
-    ok(caps.dwSystemBufferSize == 8192, "expected 8192, got %d\n", caps.dwSystemBufferSize);
+    ok(caps.dwSystemBufferSize == 0x10000 || broken(caps.dwSystemBufferSize == 0x2000 /* before Win8 */),
+       "expected 0x10000, got 0x%x\n", caps.dwSystemBufferSize);
 }
 
 static void test_cleanup_dp(void)




More information about the wine-cvs mailing list