Alessandro Pignotti : dplayx: Fixes the order of GUID initialization and storage.
Module: wine Branch: master Commit: 6406a203c86ee4bd2fd91f4f38bcf8da5713ba35 URL: http://source.winehq.org/git/wine.git/?a=commit;h=6406a203c86ee4bd2fd91f4f38... Author: Alessandro Pignotti <alex.pigna(a)inventati.org> Date: Sun Mar 25 04:02:00 2007 +0200 dplayx: Fixes the order of GUID initialization and storage. --- dlls/dplayx/dplay.c | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/dlls/dplayx/dplay.c b/dlls/dplayx/dplay.c index ed58ddf..d446f51 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.
participants (1)
-
Alexandre Julliard