advapi32: Fix sid pointer calculation in LsaLookupNames2.

This commit is contained in:
Alexandre Julliard 2009-08-18 13:23:23 +02:00
parent a104766b07
commit 4f71d33dfa
1 changed files with 1 additions and 1 deletions

View File

@ -350,7 +350,7 @@ NTSTATUS WINAPI LsaLookupNames2( LSA_HANDLE policy, ULONG flags, ULONG count,
size = sizeof(LSA_TRANSLATED_SID2) * count + sid_size_total; size = sizeof(LSA_TRANSLATED_SID2) * count + sid_size_total;
if (!(*sids = HeapAlloc( GetProcessHeap(), 0, size) )) return STATUS_NO_MEMORY; if (!(*sids = HeapAlloc( GetProcessHeap(), 0, size) )) return STATUS_NO_MEMORY;
sid = (SID *)*sids + sizeof(LSA_TRANSLATED_SID2) * mapped; sid = (SID *)(*sids + count);
if (!(*domains = HeapAlloc( GetProcessHeap(), 0, sizeof(LSA_REFERENCED_DOMAIN_LIST) ))) if (!(*domains = HeapAlloc( GetProcessHeap(), 0, sizeof(LSA_REFERENCED_DOMAIN_LIST) )))
{ {