mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 19:26:32 +00:00
[WHOAMI] Better error message when we're unable to find the logon SID
svn path=/trunk/; revision=65865
This commit is contained in:
@@ -386,7 +386,13 @@ int WhoamiLogonId(void)
|
||||
}
|
||||
}
|
||||
|
||||
if (pSid == 0 || !ConvertSidToStringSidW(pSid, &pSidStr))
|
||||
if (pSid == 0)
|
||||
{
|
||||
WhoamiFree(pGroupInfo);
|
||||
wprintf(L"ERROR: Couldn't find the logon SID.\n");
|
||||
return 1;
|
||||
}
|
||||
if (!ConvertSidToStringSidW(pSid, &pSidStr))
|
||||
{
|
||||
WhoamiFree(pGroupInfo);
|
||||
wprintf(L"ERROR: Couldn't convert the logon SID to a string.\n");
|
||||
|
||||
Reference in New Issue
Block a user