dplayx/tests: Add missing GetPlayerName test.

This commit is contained in:
André Hentschel 2012-10-28 16:15:15 +01:00 committed by Alexandre Julliard
parent 9c96e84333
commit 436e9f9c06
1 changed files with 7 additions and 0 deletions

View File

@ -2525,6 +2525,13 @@ static void test_PlayerName(void)
hr = IDirectPlayX_SetPlayerName( pDP[0], dpid[0], &playerName, hr = IDirectPlayX_SetPlayerName( pDP[0], dpid[0], &playerName,
DPSET_GUARANTEED ); DPSET_GUARANTEED );
checkHR( DP_OK, hr ); 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) */ /* - Local (no propagation) */
U1(playerName).lpszShortNameA = (LPSTR) "no_propagation"; U1(playerName).lpszShortNameA = (LPSTR) "no_propagation";