From d4a27358a57ff2f398c63de6c2dc688ed8f06d7b Mon Sep 17 00:00:00 2001 From: James Hawkins Date: Tue, 15 Aug 2006 14:48:11 -0700 Subject: [PATCH] msi: Use the bare minimum number of parameters for LookupAccountName. --- dlls/msi/source.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dlls/msi/source.c b/dlls/msi/source.c index ca66c1f2186..7499429b03a 100644 --- a/dlls/msi/source.c +++ b/dlls/msi/source.c @@ -407,14 +407,15 @@ UINT WINAPI MsiSourceListAddSourceW( LPCWSTR szProduct, LPCWSTR szUserName, INT ret; LPWSTR sidstr = NULL; DWORD sidsize = 0; + DWORD domsize = 0; TRACE("%s %s %s\n", debugstr_w(szProduct), debugstr_w(szUserName), debugstr_w(szSource)); - if (LookupAccountNameW(NULL, szUserName, NULL, &sidsize, NULL, NULL, NULL)) + if (LookupAccountNameW(NULL, szUserName, NULL, &sidsize, NULL, &domsize, NULL)) { PSID psid = msi_alloc(sidsize); - if (LookupAccountNameW(NULL, szUserName, psid, &sidsize, NULL, NULL, NULL)) + if (LookupAccountNameW(NULL, szUserName, psid, &sidsize, NULL, &domsize, NULL)) ConvertSidToStringSidW(psid, &sidstr); msi_free(psid);