Commit ee32bd99 authored by Robert Reif's avatar Robert Reif Committed by Alexandre Julliard

advapi32: Fix lsa tests.

parent dd306b91
...@@ -137,7 +137,7 @@ static void test_lsa(void) ...@@ -137,7 +137,7 @@ static void test_lsa(void)
LPSTR guidstr = NULL; LPSTR guidstr = NULL;
WCHAR guidstrW[64]; WCHAR guidstrW[64];
UINT len; UINT len;
guidstr[0] = '\0'; guidstrW[0] = '\0';
ConvertSidToStringSidA(dns_domain_info->Sid, &strsid); ConvertSidToStringSidA(dns_domain_info->Sid, &strsid);
StringFromGUID2(&dns_domain_info->DomainGuid, guidstrW, sizeof(guidstrW)/sizeof(WCHAR)); StringFromGUID2(&dns_domain_info->DomainGuid, guidstrW, sizeof(guidstrW)/sizeof(WCHAR));
len = WideCharToMultiByte( CP_ACP, 0, guidstrW, -1, NULL, 0, NULL, NULL ); len = WideCharToMultiByte( CP_ACP, 0, guidstrW, -1, NULL, 0, NULL, NULL );
...@@ -151,12 +151,12 @@ static void test_lsa(void) ...@@ -151,12 +151,12 @@ static void test_lsa(void)
if (dns_domain_info->DnsDomainName.Buffer) { if (dns_domain_info->DnsDomainName.Buffer) {
len = WideCharToMultiByte( CP_ACP, 0, dns_domain_info->DnsDomainName.Buffer, -1, NULL, 0, NULL, NULL ); len = WideCharToMultiByte( CP_ACP, 0, dns_domain_info->DnsDomainName.Buffer, -1, NULL, 0, NULL, NULL );
domain = LocalAlloc( 0, len ); domain = LocalAlloc( 0, len );
WideCharToMultiByte( CP_ACP, 0, dns_domain_info->DnsDomainName.Buffer, -1, name, len, NULL, NULL ); WideCharToMultiByte( CP_ACP, 0, dns_domain_info->DnsDomainName.Buffer, -1, domain, len, NULL, NULL );
} }
if (dns_domain_info->DnsForestName.Buffer) { if (dns_domain_info->DnsForestName.Buffer) {
len = WideCharToMultiByte( CP_ACP, 0, dns_domain_info->DnsForestName.Buffer, -1, NULL, 0, NULL, NULL ); len = WideCharToMultiByte( CP_ACP, 0, dns_domain_info->DnsForestName.Buffer, -1, NULL, 0, NULL, NULL );
forest = LocalAlloc( 0, len ); forest = LocalAlloc( 0, len );
WideCharToMultiByte( CP_ACP, 0, dns_domain_info->DnsForestName.Buffer, -1, name, len, NULL, NULL ); WideCharToMultiByte( CP_ACP, 0, dns_domain_info->DnsForestName.Buffer, -1, forest, len, NULL, NULL );
} }
trace(" name: %s domain: %s forest: %s guid: %s sid: %s\n", trace(" name: %s domain: %s forest: %s guid: %s sid: %s\n",
name ? name : "NULL", domain ? domain : "NULL", name ? name : "NULL", domain ? domain : "NULL",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment