Changeset 5526 for trunk/src/DPlayX/name_server.cpp
- Timestamp:
- Apr 16, 2001, 7:25:26 PM (24 years ago)
- 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 hughExp $1 // $Id: name_server.cpp,v 1.5 2001-04-16 17:25:26 sandervl Exp $ 2 2 /* DPLAYX.DLL name server implementation 3 3 * … … 132 132 CopyMemory( lpCacheNode->data, &lpMsg->sd, sizeof( *lpCacheNode->data ) ); 133 133 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 ))) 135 135 WideCharToMultiByte( CP_ACP, 0, (LPWSTR)(lpMsg+1), -1, 136 lpCacheNode->data-> u1.lpszSessionNameA, len, NULL, NULL );136 lpCacheNode->data->lpszSessionNameA, len, NULL, NULL ); 137 137 138 138 lpCacheNode->dwTime = timeGetTime(); … … 355 355 if (bAnsi) 356 356 dwVariableLen = MultiByteToWideChar( CP_ACP, 0, 357 lpDP->dp2->lpSessionDesc-> u1.lpszSessionNameA,357 lpDP->dp2->lpSessionDesc->lpszSessionNameA, 358 358 -1, NULL, 0 ); 359 359 else 360 dwVariableLen = strlenW( lpDP->dp2->lpSessionDesc-> u1.lpszSessionName ) + 1;360 dwVariableLen = strlenW( lpDP->dp2->lpSessionDesc->lpszSessionName ) + 1; 361 361 362 362 dwVariableSize = dwVariableLen * sizeof( WCHAR ); … … 378 378 rmsg->dwUnknown = 0x0000005c; 379 379 if( bAnsi ) 380 MultiByteToWideChar( CP_ACP, 0, lpDP->dp2->lpSessionDesc-> u1.lpszSessionNameA, -1,380 MultiByteToWideChar( CP_ACP, 0, lpDP->dp2->lpSessionDesc->lpszSessionNameA, -1, 381 381 (LPWSTR)(rmsg+1), dwVariableLen ); 382 382 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.