diff options
Diffstat (limited to 'src/libs/dutil/WixToolset.DUtil/apuputil.cpp')
| -rw-r--r-- | src/libs/dutil/WixToolset.DUtil/apuputil.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/libs/dutil/WixToolset.DUtil/apuputil.cpp b/src/libs/dutil/WixToolset.DUtil/apuputil.cpp index eb96d515..62cf4d06 100644 --- a/src/libs/dutil/WixToolset.DUtil/apuputil.cpp +++ b/src/libs/dutil/WixToolset.DUtil/apuputil.cpp | |||
| @@ -112,7 +112,7 @@ extern "C" HRESULT DAPI ApupAllocChainFromAtom( | |||
| 112 | } | 112 | } |
| 113 | 113 | ||
| 114 | // Trim the unused entries from the end, if any of the entries failed to parse or validate | 114 | // Trim the unused entries from the end, if any of the entries failed to parse or validate |
| 115 | if (pChain->cEntries != pFeed->cEntries) | 115 | if (pChain->cEntries != pFeed->cEntries) |
| 116 | { | 116 | { |
| 117 | if (pChain->cEntries > 0) | 117 | if (pChain->cEntries > 0) |
| 118 | { | 118 | { |
| @@ -354,22 +354,22 @@ static HRESULT ParseEnclosure( | |||
| 354 | dwDigestLength = 0; | 354 | dwDigestLength = 0; |
| 355 | if (CSTR_EQUAL == ::CompareStringW(LOCALE_INVARIANT, 0, L"algorithm", -1, pAttribute->wzAttribute, -1)) | 355 | if (CSTR_EQUAL == ::CompareStringW(LOCALE_INVARIANT, 0, L"algorithm", -1, pAttribute->wzAttribute, -1)) |
| 356 | { | 356 | { |
| 357 | if (CSTR_EQUAL == ::CompareStringW(LOCALE_INVARIANT, NORM_IGNORECASE, L"md5", -1, pAttribute->wzValue, -1)) | 357 | if (CSTR_EQUAL == ::CompareStringOrdinal(L"md5", -1, pAttribute->wzValue, -1, TRUE)) |
| 358 | { | 358 | { |
| 359 | pEnclosure->digestAlgorithm = APUP_HASH_ALGORITHM_MD5; | 359 | pEnclosure->digestAlgorithm = APUP_HASH_ALGORITHM_MD5; |
| 360 | dwDigestLength = MD5_HASH_LEN; | 360 | dwDigestLength = MD5_HASH_LEN; |
| 361 | } | 361 | } |
| 362 | else if (CSTR_EQUAL == ::CompareStringW(LOCALE_INVARIANT, NORM_IGNORECASE, L"sha1", -1, pAttribute->wzValue, -1)) | 362 | else if (CSTR_EQUAL == ::CompareStringOrdinal(L"sha1", -1, pAttribute->wzValue, -1, TRUE)) |
| 363 | { | 363 | { |
| 364 | pEnclosure->digestAlgorithm = APUP_HASH_ALGORITHM_SHA1; | 364 | pEnclosure->digestAlgorithm = APUP_HASH_ALGORITHM_SHA1; |
| 365 | dwDigestLength = SHA1_HASH_LEN; | 365 | dwDigestLength = SHA1_HASH_LEN; |
| 366 | } | 366 | } |
| 367 | else if (CSTR_EQUAL == ::CompareStringW(LOCALE_INVARIANT, NORM_IGNORECASE, L"sha256", -1, pAttribute->wzValue, -1)) | 367 | else if (CSTR_EQUAL == ::CompareStringOrdinal(L"sha256", -1, pAttribute->wzValue, -1, TRUE)) |
| 368 | { | 368 | { |
| 369 | pEnclosure->digestAlgorithm = APUP_HASH_ALGORITHM_SHA256; | 369 | pEnclosure->digestAlgorithm = APUP_HASH_ALGORITHM_SHA256; |
| 370 | dwDigestLength = SHA256_HASH_LEN; | 370 | dwDigestLength = SHA256_HASH_LEN; |
| 371 | } | 371 | } |
| 372 | else if (CSTR_EQUAL == ::CompareStringW(LOCALE_INVARIANT, NORM_IGNORECASE, L"sha512", -1, pAttribute->wzValue, -1)) | 372 | else if (CSTR_EQUAL == ::CompareStringOrdinal(L"sha512", -1, pAttribute->wzValue, -1, TRUE)) |
| 373 | { | 373 | { |
| 374 | pEnclosure->digestAlgorithm = APUP_HASH_ALGORITHM_SHA512; | 374 | pEnclosure->digestAlgorithm = APUP_HASH_ALGORITHM_SHA512; |
| 375 | dwDigestLength = SHA512_HASH_LEN; | 375 | dwDigestLength = SHA512_HASH_LEN; |
