dplayx: Fix a typo

Andrew Talbot Andrew.Talbot at talbotville.com
Wed Apr 25 15:41:14 CDT 2007


I reckon that "src" and "dest" should be the same way round here in
DPLAYX_CopyConnStructW() as they are in DPLAYX_CopyConnStructA().

-- Andy.
---
Changelog:
    dplayx: Fix a typo.

diff -urN a/dlls/dplayx/dplayx_global.c b/dlls/dplayx/dplayx_global.c
--- a/dlls/dplayx/dplayx_global.c	2007-01-08 12:37:17.000000000 +0000
+++ b/dlls/dplayx/dplayx_global.c	2007-04-25 21:28:33.000000000 +0100
@@ -798,8 +798,8 @@
     /* Session names may or may not exist */
     if( src->lpSessionDesc->u1.lpszSessionName )
     {
-      strcpyW( (LPWSTR)lpStartOfFreeSpace, dest->lpSessionDesc->u1.lpszSessionName );
-      src->lpSessionDesc->u1.lpszSessionName = (LPWSTR)lpStartOfFreeSpace;
+      strcpyW( (LPWSTR)lpStartOfFreeSpace, src->lpSessionDesc->u1.lpszSessionName );
+      dest->lpSessionDesc->u1.lpszSessionName = (LPWSTR)lpStartOfFreeSpace;
       lpStartOfFreeSpace +=  sizeof(WCHAR) *
         ( strlenW( (LPWSTR)dest->lpSessionDesc->u1.lpszSessionName ) + 1 );
     }



More information about the wine-patches mailing list