mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 17:34:57 +00:00
- Add NULL pointer check. Found by Amine Khaldi.
svn path=/trunk/; revision=43033
This commit is contained in:
parent
6672b72619
commit
2ff9fd5fcf
1 changed files with 5 additions and 2 deletions
|
@ -1200,8 +1200,11 @@ LookupAccountSidW(LPCWSTR pSystemName,
|
|||
else
|
||||
{
|
||||
*pdwDomainName = dwSrcLen;
|
||||
RtlCopyMemory ( pDomainName, ReferencedDomain->Domains[0].Name.Buffer, ReferencedDomain->Domains[0].Name.Length );
|
||||
pDomainName[ReferencedDomain->Domains[0].Name.Length / sizeof(WCHAR)] = L'\0';
|
||||
if (pDomainName)
|
||||
{
|
||||
RtlCopyMemory ( pDomainName, ReferencedDomain->Domains[0].Name.Buffer, ReferencedDomain->Domains[0].Name.Length );
|
||||
pDomainName[ReferencedDomain->Domains[0].Name.Length / sizeof(WCHAR)] = L'\0';
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue