wintrust: Fix compiler warnings with flag -Wcast-qual.
This commit is contained in:
parent
25306d8be3
commit
968b98f842
|
@ -1348,7 +1348,7 @@ static BOOL CRYPT_AsnDecodeSPCLinkInternal(DWORD dwCertEncodingType,
|
|||
link->dwLinkChoice = SPC_FILE_LINK_CHOICE;
|
||||
for (i = 0; i < dataLen / sizeof(WCHAR); i++)
|
||||
link->u.pwszFile[i] =
|
||||
hton16(*(WORD *)(ptr + i * sizeof(WCHAR)));
|
||||
hton16(*(const WORD *)(ptr + i * sizeof(WCHAR)));
|
||||
link->u.pwszFile[realDataLen / sizeof(WCHAR)] = '\0';
|
||||
TRACE("returning file %s\n", debugstr_w(link->u.pwszFile));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue