|
@@ -166,6 +166,7 @@ const TCHAR *well_known_sid(SID *sid) {
|
|
}
|
|
}
|
|
|
|
|
|
const TCHAR *well_known_username(const TCHAR *username) {
|
|
const TCHAR *well_known_username(const TCHAR *username) {
|
|
|
|
+ if (! username) return NSSM_LOCALSYSTEM_ACCOUNT;
|
|
if (str_equiv(username, NSSM_LOCALSYSTEM_ACCOUNT)) return NSSM_LOCALSYSTEM_ACCOUNT;
|
|
if (str_equiv(username, NSSM_LOCALSYSTEM_ACCOUNT)) return NSSM_LOCALSYSTEM_ACCOUNT;
|
|
SID *sid;
|
|
SID *sid;
|
|
int r = username_sid(username, &sid);
|
|
int r = username_sid(username, &sid);
|