From 4f71d33dfabad2678a27dfe221feb825ed498c7e Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Tue, 18 Aug 2009 13:23:23 +0200 Subject: [PATCH] advapi32: Fix sid pointer calculation in LsaLookupNames2. --- dlls/advapi32/lsa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/advapi32/lsa.c b/dlls/advapi32/lsa.c index 66727bafb42..796fa45bd71 100644 --- a/dlls/advapi32/lsa.c +++ b/dlls/advapi32/lsa.c @@ -350,7 +350,7 @@ NTSTATUS WINAPI LsaLookupNames2( LSA_HANDLE policy, ULONG flags, ULONG count, size = sizeof(LSA_TRANSLATED_SID2) * count + sid_size_total; 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) ))) {