mirror of
https://github.com/reactos/reactos.git
synced 2024-10-02 07:26:47 +00:00
don't crash when GetUserNameW is called with NULL - fixes launching of Office 2003 setup
svn path=/trunk/; revision=31875
This commit is contained in:
parent
f1b7277633
commit
126214d889
|
@ -938,8 +938,11 @@ LookupAccountSidW (
|
|||
else
|
||||
{
|
||||
*pdwAccountName = dwSrcLen;
|
||||
RtlCopyMemory ( pAccountName, TranslatedName->Name.Buffer, TranslatedName->Name.Length );
|
||||
pAccountName[TranslatedName->Name.Length / sizeof(WCHAR)] = L'\0';
|
||||
if (pAccountName)
|
||||
{
|
||||
RtlCopyMemory ( pAccountName, TranslatedName->Name.Buffer, TranslatedName->Name.Length );
|
||||
pAccountName[TranslatedName->Name.Length / sizeof(WCHAR)] = L'\0';
|
||||
}
|
||||
}
|
||||
if ( peUse )
|
||||
*peUse = TranslatedName->Use;
|
||||
|
|
Loading…
Reference in a new issue