Module: wine Branch: master Commit: 968b98f84242bab11d824980f696d18651222574 URL: http://source.winehq.org/git/wine.git/?a=commit;h=968b98f84242bab11d824980f6...
Author: Mikhail Maroukhine mikolg@yandex.ru Date: Sun Mar 28 21:30:39 2010 +0700
wintrust: Fix compiler warnings with flag -Wcast-qual.
---
dlls/wintrust/asn.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/wintrust/asn.c b/dlls/wintrust/asn.c index 69c9dd3..8659266 100644 --- a/dlls/wintrust/asn.c +++ b/dlls/wintrust/asn.c @@ -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)); }