--- rpl/src/instructions_m4.c 2012/04/13 14:12:56 1.41 +++ rpl/src/instructions_m4.c 2012/05/20 17:28:26 1.42 @@ -610,8 +610,11 @@ instruction_mtxtrylock(struct_processus return; } } - - (*((struct_mutex *) (*s_objet_argument).objet)).tid = pthread_self(); + else + { + (*((struct_mutex *) (*s_objet_argument).objet)).tid = + pthread_self(); + } if ((*s_etat_processus).profilage == d_vrai) { @@ -635,7 +638,7 @@ instruction_mtxtrylock(struct_processus return; } - (*((integer8 *) (*s_objet_resultat).objet)) = (ios == 0) ? 0 : -1; + (*((integer8 *) (*s_objet_resultat).objet)) = (ios == 0) ? -1 : 0; if (empilement(s_etat_processus, &((*s_etat_processus).l_base_pile), s_objet_resultat) == d_erreur)