Changeset 4446 for trunk/src/DPlayX/dplayx_messages.cpp
- Timestamp:
- Oct 6, 2000, 9:49:06 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/DPlayX/dplayx_messages.cpp
r4317 r4446 1 // $Id: dplayx_messages.cpp,v 1. 2 2000-09-24 22:47:38hugh Exp $1 // $Id: dplayx_messages.cpp,v 1.3 2000-10-06 19:49:05 hugh Exp $ 2 2 /* DirectPlay & DirectPlayLobby messaging implementation 3 3 * … … 26 26 DEFAULT_DEBUG_CHANNEL(dplay) 27 27 28 #undef debugstr_guid 28 29 #define debugstr_guid(a) a 29 30 … … 158 159 HRESULT hr = DP_OK; 159 160 160 FIXME( "semi stub\n" );161 162 DebugBreak();163 164 161 dwMsgSize = This->dp2->spData.dwSPHeaderSize + sizeof( *lpMsgBody ); 165 162 … … 195 192 This->dp2->hMsgReceipt = CreateEventA( NULL, FALSE, FALSE, NULL ); 196 193 194 TRACE( "Sending request for player id\n" ); 195 197 196 hr = (*This->dp2->spData.lpCB->Send)( &data ); 198 197 … … 201 200 ERR( "Request for new playerID send failed: %s\n", 202 201 DPLAYX_HresultToString( hr ) ); 202 return DPERR_NOCONNECTION; 203 203 } 204 204 } … … 208 208 { 209 209 ERR( "Wait failed 0x%08lx\n", dwWaitReturn ); 210 hr = DPERR_TIMEOUT; 210 211 } 211 212 … … 214 215 215 216 /* Need to examine the data and extract the new player id */ 216 /* I just hope that dplay doesn't return the whole new player! */ 217 if( !FAILED(hr) ) 218 { 219 LPCDPMSG_NEWPLAYERIDREPLY lpcReply; 220 221 lpcReply = (LPCDPMSG_NEWPLAYERIDREPLY)This->dp2->lpMsgReceived; 222 223 *lpdpidAllocatedId = lpcReply->dpidNewPlayerId; 224 225 TRACE( "Received reply for id = 0x%08lx\n", lpcReply->dpidNewPlayerId ); 226 227 /* FIXME: I think that the rest of the message has something to do 228 * with remote data for the player that perhaps I need to setup. 229 */ 230 #if 0 231 /* Set the passed service provider data */ 232 IDirectPlaySP_SetSPData( This->dp2->spData.lpISP, data, 233 msgsize, DPSET_REMOTE ); 234 235 #endif 236 237 HeapFree( GetProcessHeap(), 0, This->dp2->lpMsgReceived ); 238 This->dp2->lpMsgReceived = NULL; 239 } 217 240 218 241 return hr;
Note:
See TracChangeset
for help on using the changeset viewer.