From 6406a203c86ee4bd2fd91f4f38bcf8da5713ba35 Mon Sep 17 00:00:00 2001 From: Alessandro Pignotti Date: Sun, 25 Mar 2007 04:02:00 +0200 Subject: [PATCH] dplayx: Fixes the order of GUID initialization and storage. --- dlls/dplayx/dplay.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/dlls/dplayx/dplay.c b/dlls/dplayx/dplay.c index ed58ddfaae5..d446f518975 100644 --- a/dlls/dplayx/dplay.c +++ b/dlls/dplayx/dplay.c @@ -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.