dplayx: Use skip and fix indentation.
This commit is contained in:
parent
0210f5eb1d
commit
2a13eb0677
|
@ -51,8 +51,13 @@ static void test_session_guid(LPDIRECTPLAY4 pDP)
|
||||||
|
|
||||||
CoCreateGuid( &appGuid );
|
CoCreateGuid( &appGuid );
|
||||||
IDirectPlayX_EnumConnections(pDP, &appGuid, EnumConnectionsCallback, pDP, 0);
|
IDirectPlayX_EnumConnections(pDP, &appGuid, EnumConnectionsCallback, pDP, 0);
|
||||||
if( validSP )
|
|
||||||
|
if( !validSP )
|
||||||
{
|
{
|
||||||
|
skip("Tests will not work without a valid service provider, skipping.\n");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
memset(&sessionDesc, 0, sizeof( DPSESSIONDESC2 ));
|
memset(&sessionDesc, 0, sizeof( DPSESSIONDESC2 ));
|
||||||
memset(&zeroGuid, 0, 16);
|
memset(&zeroGuid, 0, 16);
|
||||||
|
|
||||||
|
@ -63,18 +68,18 @@ static void test_session_guid(LPDIRECTPLAY4 pDP)
|
||||||
sessionDesc.dwMaxPlayers = 10;
|
sessionDesc.dwMaxPlayers = 10;
|
||||||
sessionDesc.dwCurrentPlayers = 0;
|
sessionDesc.dwCurrentPlayers = 0;
|
||||||
IDirectPlayX_Open(pDP, &sessionDesc, DPOPEN_CREATE);
|
IDirectPlayX_Open(pDP, &sessionDesc, DPOPEN_CREATE);
|
||||||
|
|
||||||
/* I read the sessiondesc from directplay in a fresh memory location,
|
/* I read the sessiondesc from directplay in a fresh memory location,
|
||||||
because directplay does not touch the original struct, but saves
|
because directplay does not touch the original struct, but saves
|
||||||
internally a version with the session guid set*/
|
internally a version with the session guid set*/
|
||||||
|
|
||||||
IDirectPlayX_GetSessionDesc(pDP, NULL, &sessionSize);
|
IDirectPlayX_GetSessionDesc(pDP, NULL, &sessionSize);
|
||||||
newSession=HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sessionSize);
|
newSession = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sessionSize);
|
||||||
IDirectPlayX_GetSessionDesc(pDP, newSession, &sessionSize);
|
IDirectPlayX_GetSessionDesc(pDP, newSession, &sessionSize);
|
||||||
todo_wine ok( !IsEqualGUID(&newSession->guidInstance, &zeroGuid), "Session guid not initialized");
|
todo_wine ok( !IsEqualGUID(&newSession->guidInstance, &zeroGuid), "Session guid not initialized");
|
||||||
HeapFree(GetProcessHeap(), 0, newSession);
|
HeapFree(GetProcessHeap(), 0, newSession);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
START_TEST(dplayx)
|
START_TEST(dplayx)
|
||||||
{
|
{
|
||||||
LPDIRECTPLAY4 pDP;
|
LPDIRECTPLAY4 pDP;
|
||||||
|
|
Loading…
Reference in New Issue