Fixed exception is GetSidByteArray() in meshcmd, used in meshcmd amtauditlog.

This commit is contained in:
Ylian Saint-Hilaire 2022-07-17 20:13:14 -07:00
parent babc1999c7
commit 51e0adc7d8

View File

@ -987,8 +987,8 @@ function AmtStackCreateService(wsmanStack) {
// Convert a byte array of SID into string
function GetSidString(sid) {
var r = "S-" + sid.charCodeAt(0) + "-" + sid.charCodeAt(7);
for (var i = 2; i < (sid.length / 4); i++) r += "-" + ReadIntX(sid, i * 4);
var r = 'S-' + sid[0] + '-' + sid[7];
for (var i = 2; i < (sid.length / 4); i++) r += '-' + ReadIntX(sid, i * 4);
return r;
}