Ignore:
Timestamp:
Oct 6, 2000, 9:49:06 PM (25 years ago)
Author:
hugh
Message:

Updated to latest WINE

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:38 hugh Exp $
     1// $Id: dplayx_messages.cpp,v 1.3 2000-10-06 19:49:05 hugh Exp $
    22/* DirectPlay & DirectPlayLobby messaging implementation
    33 *
     
    2626DEFAULT_DEBUG_CHANNEL(dplay)
    2727
     28#undef  debugstr_guid
    2829#define debugstr_guid(a) a
    2930
     
    158159  HRESULT                    hr = DP_OK;
    159160
    160   FIXME( "semi stub\n" );
    161 
    162   DebugBreak();
    163 
    164161  dwMsgSize = This->dp2->spData.dwSPHeaderSize + sizeof( *lpMsgBody );
    165162
     
    195192    This->dp2->hMsgReceipt = CreateEventA( NULL, FALSE, FALSE, NULL );
    196193
     194    TRACE( "Sending request for player id\n" );
     195
    197196    hr = (*This->dp2->spData.lpCB->Send)( &data );
    198197
     
    201200      ERR( "Request for new playerID send failed: %s\n",
    202201           DPLAYX_HresultToString( hr ) );
     202      return DPERR_NOCONNECTION;
    203203    }
    204204  }
     
    208208  {
    209209    ERR( "Wait failed 0x%08lx\n", dwWaitReturn );
     210    hr = DPERR_TIMEOUT;
    210211  }
    211212
     
    214215
    215216  /* 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  }
    217240
    218241  return hr;
Note: See TracChangeset for help on using the changeset viewer.