dmnt.gen2: fix gt, optimize

This commit is contained in:
Michael Scire 2022-06-08 00:49:47 -07:00
parent 20d200471d
commit 4e112de223

View file

@ -2365,18 +2365,18 @@ namespace ams::dmnt {
*(cur++) = ';'; *(cur++) = ';';
} else if (name[i] == '>') { } else if (name[i] == '>') {
*(cur++) = '&'; *(cur++) = '&';
*(cur++) = 'r'; *(cur++) = 'g';
*(cur++) = 't'; *(cur++) = 't';
*(cur++) = ';'; *(cur++) = ';';
} else { } else {
*(cur++) = name[i]; *(cur++) = name[i];
}
if (name[i] == '\x00') { if (name[i] == '\x00') {
break; break;
} }
} }
} }
}
/* Set the thread entry */ /* Set the thread entry */
AppendReplyFormat(dst_cur, dst_end, "<thread id=\"p%lx.%lx\" core=\"%u\" name=\"%s\" />", m_process_id.value, thread_ids[i], core, sanitized); AppendReplyFormat(dst_cur, dst_end, "<thread id=\"p%lx.%lx\" core=\"%u\" name=\"%s\" />", m_process_id.value, thread_ids[i], core, sanitized);