launcher, launchctl: refactoring

This commit is contained in:
Bill Zissimopoulos
2016-05-13 10:00:54 -07:00
parent 2c51251cb7
commit 8ccd44a1f7
2 changed files with 6 additions and 9 deletions

View File

@ -443,9 +443,7 @@ NTSTATUS SvcInstanceGetNameList(HANDLE ClientToken,
if (BufferEnd < P + ClassNameSize + InstanceNameSize)
break;
ClassNameSize--;
memcpy(P, SvcInstance->ClassName, ClassNameSize * sizeof(WCHAR)); P += ClassNameSize;
*Buffer++ = L'\1';
memcpy(P, SvcInstance->InstanceName, InstanceNameSize * sizeof(WCHAR)); P += InstanceNameSize;
}