mirror of
https://github.com/reactos/wine.git
synced 2025-01-24 04:45:18 +00:00
advapi32: Check returned data from LsaQueryInformationPolicy.
This commit is contained in:
parent
72ac6f5d4e
commit
dabf5e88bf
@ -4,6 +4,7 @@ SRCDIR = @srcdir@
|
||||
VPATH = @srcdir@
|
||||
TESTDLL = advapi32.dll
|
||||
IMPORTS = advapi32 kernel32
|
||||
EXTRALIBS = -luuid
|
||||
|
||||
CTESTS = \
|
||||
crypt.c \
|
||||
|
@ -28,7 +28,8 @@
|
||||
#include "winreg.h"
|
||||
#include "winternl.h"
|
||||
#include "ntsecapi.h"
|
||||
|
||||
#define INITGUID
|
||||
#include "guiddef.h"
|
||||
#include "wine/test.h"
|
||||
|
||||
static HMODULE hadvapi32;
|
||||
@ -80,6 +81,7 @@ static void test_lsa(void)
|
||||
status = pLsaQueryInformationPolicy(handle, PolicyPrimaryDomainInformation, (PVOID*)&primary_domain_info);
|
||||
ok(status == STATUS_SUCCESS, "LsaQueryInformationPolicy(PolicyPrimaryDomainInformation) failed, returned 0x%08lx\n", status);
|
||||
if (status == STATUS_SUCCESS) {
|
||||
ok(primary_domain_info->Sid==0,"Sid should be NULL on the local computer\n");
|
||||
pLsaFreeMemory((LPVOID)primary_domain_info);
|
||||
}
|
||||
|
||||
@ -92,6 +94,8 @@ static void test_lsa(void)
|
||||
status = pLsaQueryInformationPolicy(handle, PolicyDnsDomainInformation, (PVOID*)&dns_domain_info);
|
||||
ok(status == STATUS_SUCCESS, "LsaQueryInformationPolicy(PolicyDnsDomainInformation) failed, returned 0x%08lx\n", status);
|
||||
if (status == STATUS_SUCCESS) {
|
||||
ok(IsEqualGUID(&dns_domain_info->DomainGuid, &GUID_NULL), "DomainGUID should be GUID_NULL on local computer\n");
|
||||
ok(dns_domain_info->Sid==0,"Sid should be NULL on the local computer\n");
|
||||
pLsaFreeMemory((LPVOID)dns_domain_info);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user