fix crash in release - that bug has been in forever? does this show up now because of the compiler/platform upgrade?

This commit is contained in:
ttimo 2022-11-14 14:07:56 -06:00
parent 7c513161b1
commit 28fe20b384

View file

@ -403,13 +403,12 @@ void CSynapseServer::PushRequired( CSynapseClient *pClient ){
std::list<CSynapseClientSlot>::iterator iClientSlot; std::list<CSynapseClientSlot>::iterator iClientSlot;
for ( iClientSlot = mClients.begin(); iClientSlot != mClients.end(); iClientSlot++ ) for ( iClientSlot = mClients.begin(); iClientSlot != mClients.end(); iClientSlot++ )
{ {
CSynapseClient *pScanClient = ( *iClientSlot ). CSynapseClient *pScanClient = ( *iClientSlot ).mpClient;
mpClient;
int j,jmax = pScanClient->GetAPICount(); int j,jmax = pScanClient->GetAPICount();
for ( j = 0; j < jmax; j++ ) for ( j = 0; j < jmax; j++ )
{ {
APIDescriptor_t *pAPI = pScanClient->GetAPIDescriptor( j ); APIDescriptor_t *pAPI = pScanClient->GetAPIDescriptor( j );
if ( pAPI->mType == SYN_PROVIDE ) { if ( pAPI != NULL && pAPI->mType == SYN_PROVIDE ) {
if ( pManager->MatchAPI( pAPI->major_name, pAPI->minor_name ) ) { if ( pManager->MatchAPI( pAPI->major_name, pAPI->minor_name ) ) {
/*! we are going to want to load this one /*! we are going to want to load this one
* NOTE TTimo: what if this can not be resolved in the end? * NOTE TTimo: what if this can not be resolved in the end?