Ignore:
Timestamp:
Apr 16, 2001, 7:25:26 PM (24 years ago)
Author:
sandervl
Message:

compile fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/DPlayX/name_server.cpp

    r5311 r5526  
    1 // $Id: name_server.cpp,v 1.4 2001-03-13 23:13:27 hugh Exp $
     1// $Id: name_server.cpp,v 1.5 2001-04-16 17:25:26 sandervl Exp $
    22/* DPLAYX.DLL name server implementation
    33 *
     
    132132  CopyMemory( lpCacheNode->data, &lpMsg->sd, sizeof( *lpCacheNode->data ) );
    133133  len = WideCharToMultiByte( CP_ACP, 0, (LPWSTR)(lpMsg+1), -1, NULL, 0, NULL, NULL );
    134   if ((lpCacheNode->data->u1.lpszSessionNameA = (LPSTR)HeapAlloc( GetProcessHeap(), 0, len )))
     134  if ((lpCacheNode->data->lpszSessionNameA = (LPSTR)HeapAlloc( GetProcessHeap(), 0, len )))
    135135      WideCharToMultiByte( CP_ACP, 0, (LPWSTR)(lpMsg+1), -1,
    136                            lpCacheNode->data->u1.lpszSessionNameA, len, NULL, NULL );
     136                           lpCacheNode->data->lpszSessionNameA, len, NULL, NULL );
    137137
    138138  lpCacheNode->dwTime = timeGetTime();
     
    355355  if (bAnsi)
    356356      dwVariableLen = MultiByteToWideChar( CP_ACP, 0,
    357                                            lpDP->dp2->lpSessionDesc->u1.lpszSessionNameA,
     357                                           lpDP->dp2->lpSessionDesc->lpszSessionNameA,
    358358                                           -1, NULL, 0 );
    359359  else
    360       dwVariableLen = strlenW( lpDP->dp2->lpSessionDesc->u1.lpszSessionName ) + 1;
     360      dwVariableLen = strlenW( lpDP->dp2->lpSessionDesc->lpszSessionName ) + 1;
    361361
    362362  dwVariableSize = dwVariableLen * sizeof( WCHAR );
     
    378378  rmsg->dwUnknown = 0x0000005c;
    379379  if( bAnsi )
    380       MultiByteToWideChar( CP_ACP, 0, lpDP->dp2->lpSessionDesc->u1.lpszSessionNameA, -1,
     380      MultiByteToWideChar( CP_ACP, 0, lpDP->dp2->lpSessionDesc->lpszSessionNameA, -1,
    381381                           (LPWSTR)(rmsg+1), dwVariableLen );
    382382  else
    383       strcpyW( (LPWSTR)(rmsg+1), lpDP->dp2->lpSessionDesc->u1.lpszSessionName );
    384 }
     383      strcpyW( (LPWSTR)(rmsg+1), lpDP->dp2->lpSessionDesc->lpszSessionName );
     384}
Note: See TracChangeset for help on using the changeset viewer.