on avance....

This commit is contained in:
stormrider1982 2004-02-23 22:06:42 +00:00 committed by Glenn Y. Rolland
parent ca8501406a
commit 427b62dbbc

View file

@ -10,12 +10,14 @@ int msgQueueElemDelete(msgQueueElemId queueElemId){
goto ERROR; goto ERROR;
} }
strcpy(nextIdToDie, queueElemAddr->next);
if (msgQueueElemClose(queueElemAddr) < 0){ if (msgQueueElemClose(queueElemAddr) < 0){
NZG_ERROR("msgQueueElemClose",queueElemId); NZG_ERROR("msgQueueElemClose",queueElemId);
goto ERROR; goto ERROR;
} }
if (nextIdToDie != NULL){ if (nextIdToDie != queueElemId){
return msgQueueElemDelete(nextIdToDie); return msgQueueElemDelete(nextIdToDie);
} else { } else {
return 0; return 0;