=?UTF-8?Q?Andr=C3=A9=20Hentschel=20?=: dplayx/tests: Add missing GetPlayerName test.
Alexandre Julliard
julliard at winehq.org
Mon Oct 29 13:52:50 CDT 2012
Module: wine
Branch: master
Commit: 436e9f9c06416e92724e02170693d50cebc3be2a
URL: http://source.winehq.org/git/wine.git/?a=commit;h=436e9f9c06416e92724e02170693d50cebc3be2a
Author: André Hentschel <nerv at dawncrow.de>
Date: Sun Oct 28 16:15:15 2012 +0100
dplayx/tests: Add missing GetPlayerName test.
---
dlls/dplayx/tests/dplayx.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/dlls/dplayx/tests/dplayx.c b/dlls/dplayx/tests/dplayx.c
index e020a47..c6ab185 100644
--- a/dlls/dplayx/tests/dplayx.c
+++ b/dlls/dplayx/tests/dplayx.c
@@ -2525,6 +2525,13 @@ static void test_PlayerName(void)
hr = IDirectPlayX_SetPlayerName( pDP[0], dpid[0], &playerName,
DPSET_GUARANTEED );
checkHR( DP_OK, hr );
+ dwDataSize = 1024;
+ hr = IDirectPlayX_GetPlayerName( pDP[0], dpid[0], lpData, &dwDataSize );
+ checkHR( DP_OK, hr );
+ check( 45, dwDataSize );
+ checkStr( U1(playerName).lpszShortNameA, U1(*(LPDPNAME)lpData).lpszShortNameA );
+ checkStr( U2(playerName).lpszLongNameA, U2(*(LPDPNAME)lpData).lpszLongNameA );
+ check( 0, ((LPDPNAME)lpData)->dwFlags );
/* - Local (no propagation) */
U1(playerName).lpszShortNameA = (LPSTR) "no_propagation";
More information about the wine-cvs
mailing list