dplayx: Fixes the order of GUID initialization and storage.

This commit is contained in:
Alessandro Pignotti 2007-03-25 04:02:00 +02:00 committed by Alexandre Julliard
parent aaf74d9f64
commit 6406a203c8
1 changed files with 2 additions and 3 deletions

View File

@ -3253,14 +3253,13 @@ static HRESULT WINAPI DP_SetSessionDesc
HeapFree( GetProcessHeap(), 0, This->dp2->lpSessionDesc );
This->dp2->lpSessionDesc = lpTempSessDesc;
/* Set the new */
DP_CopySessionDesc( This->dp2->lpSessionDesc, lpSessDesc, bAnsi );
if( bInitial )
{
/*Initializing session GUID*/
CoCreateGuid( &(This->dp2->lpSessionDesc->guidInstance) );
}
/* Set the new */
DP_CopySessionDesc( This->dp2->lpSessionDesc, lpSessDesc, bAnsi );
/* If this is an external invocation of the interface, we should be
* letting everyone know that things have changed. Otherwise this is
* just an initialization and it doesn't need to be propagated.