advapi32: Eliminate wild pointers.
This commit is contained in:
parent
70797560b7
commit
d05fabb660
|
@ -446,7 +446,8 @@ NTSTATUS WINAPI LsaQueryInformationPolicy(
|
|||
* All other fields are zero.
|
||||
*/
|
||||
PPOLICY_PRIMARY_DOMAIN_INFO pinfo;
|
||||
pinfo = ADVAPI_GetDomainName(sizeof(*pinfo), (char*)&pinfo->Name - (char*)pinfo);
|
||||
|
||||
pinfo = ADVAPI_GetDomainName(sizeof(*pinfo), offsetof(POLICY_PRIMARY_DOMAIN_INFO, Name));
|
||||
|
||||
TRACE("setting domain to %s\n", debugstr_w(pinfo->Name.Buffer));
|
||||
|
||||
|
@ -497,7 +498,7 @@ NTSTATUS WINAPI LsaQueryInformationPolicy(
|
|||
*/
|
||||
PPOLICY_DNS_DOMAIN_INFO pinfo;
|
||||
|
||||
pinfo = ADVAPI_GetDomainName(sizeof(*pinfo), (char*)&pinfo->Name - (char*)pinfo);
|
||||
pinfo = ADVAPI_GetDomainName(sizeof(*pinfo), offsetof(POLICY_DNS_DOMAIN_INFO, Name));
|
||||
|
||||
TRACE("setting domain to %s\n", debugstr_w(pinfo->Name.Buffer));
|
||||
|
||||
|
|
Loading…
Reference in New Issue