rem: ClearSemaphore (&GraphicsSem);
add: ClearSemaphore (GraphicsSem);
context: DoSaveTeam (PMELEE_STATE pMS){	STAMP MsgStamp;	UNICODE buf[60];	FILE *save_fp;	CONTEXT OldContext;RetrySave:	SetSemaphore (&GraphicsSem);	OldContext = SetContext (ScreenContext);	ConfirmSaveLoad (&MsgStamp);	wsprintf (buf, "%s.mle", pMS->TeamImage[pMS->side].TeamName);	save_fp = OpenResFile (buf, "wb");	if (save_fp)	{		BOOLEAN err;		err = (BOOLEAN)(WriteTeamImage (&pMS->TeamImage[pMS->side], save_fp) == 0);		if (CloseResFile (save_fp) == 0)			err = TRUE;		if (err)			save_fp = 0;	}	pMS->CurIndex = 0;	if (save_fp == 0)	{		DrawStamp (&MsgStamp);		DestroyDrawable (ReleaseDrawable (MsgStamp.frame));		SetContext (OldContext);		ClearSemaphore (&GraphicsSem);		DeleteResFile (buf);		if (SaveProblem ())			goto RetrySave;	}	LoadTeamList (pMS, buf);	if (save_fp)	{		DrawStamp (&MsgStamp);		DestroyDrawable (ReleaseDrawable (MsgStamp.frame));		SetContext (OldContext);		ClearSemaphore (&GraphicsSem);	}		return (save_fp != 0);}