From: Anton Baskanov baskanov@gmail.com
--- dlls/dplayx/dplay.c | 4 ++++ dlls/dplayx/tests/dplayx.c | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/dlls/dplayx/dplay.c b/dlls/dplayx/dplay.c index d77a6375748..cecc4d62657 100644 --- a/dlls/dplayx/dplay.c +++ b/dlls/dplayx/dplay.c @@ -3339,6 +3339,10 @@ static HRESULT DP_SecureOpen( IDirectPlayImpl *This, const DPSESSIONDESC2 *lpsd, sessionDesc = NS_WalkSessions( This->dp2->lpNameServerData, &spMessageHeader ); if ( !sessionDesc ) return DPERR_NOSESSIONS; + + This->dp2->lpSessionDesc = DP_DuplicateSessionDesc( sessionDesc, bAnsi, bAnsi ); + if ( !This->dp2->lpSessionDesc ) + return DPERR_OUTOFMEMORY; }
/* Invoke the conditional callback for the service provider */ diff --git a/dlls/dplayx/tests/dplayx.c b/dlls/dplayx/tests/dplayx.c index e0d92b1f8e5..105de7f9618 100644 --- a/dlls/dplayx/tests/dplayx.c +++ b/dlls/dplayx/tests/dplayx.c @@ -1274,7 +1274,8 @@ static unsigned short receiveAddForwardRequest_( int line, SOCKET sock, DPID exp
todo_wine_if( expectedPasswordSize != 2 ) ok_( __FILE__, line )( wsResult == sizeof( DWORD ), "recv() returned %d.\n", wsResult ); - todo_wine ok_( __FILE__, line )( tickCount == expectedTickCount, "got tick count %#lx.\n", tickCount ); + todo_wine_if( expectedPasswordSize != 2 ) ok_( __FILE__, line )( tickCount == expectedTickCount, + "got tick count %#lx.\n", tickCount );
return port; }