diff options
| author | Rob Mensching <rob@firegiant.com> | 2025-11-01 21:52:31 -0700 |
|---|---|---|
| committer | Rob Mensching <rob@firegiant.com> | 2025-11-03 14:49:39 -0800 |
| commit | d2ba0da55725f2908b67e1470afc7cfd71cb3d1f (patch) | |
| tree | c2a1db61c5fac031c698976106bba2c453d85ded /src/burn/engine/approvedexe.cpp | |
| parent | 4d626c294c4783d454e27ea4e5614037dac8576e (diff) | |
| download | wix-d2ba0da55725f2908b67e1470afc7cfd71cb3d1f.tar.gz wix-d2ba0da55725f2908b67e1470afc7cfd71cb3d1f.tar.bz2 wix-d2ba0da55725f2908b67e1470afc7cfd71cb3d1f.zip | |
Use CompareStringOrdinal() instead of CompareString() case-sensitive
This commit moves to the modern CompareStringOrdinal() for all case-sensitve
uses of CompareString() with the invariant locale.
Resolves 6947
Diffstat (limited to 'src/burn/engine/approvedexe.cpp')
| -rw-r--r-- | src/burn/engine/approvedexe.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/burn/engine/approvedexe.cpp b/src/burn/engine/approvedexe.cpp index 383ee7fa..27ec2adc 100644 --- a/src/burn/engine/approvedexe.cpp +++ b/src/burn/engine/approvedexe.cpp | |||
| @@ -129,7 +129,7 @@ extern "C" HRESULT ApprovedExesFindById( | |||
| 129 | { | 129 | { |
| 130 | pApprovedExe = &pApprovedExes->rgApprovedExes[i]; | 130 | pApprovedExe = &pApprovedExes->rgApprovedExes[i]; |
| 131 | 131 | ||
| 132 | if (CSTR_EQUAL == ::CompareStringW(LOCALE_INVARIANT, 0, pApprovedExe->sczId, -1, wzId, -1)) | 132 | if (CSTR_EQUAL == ::CompareStringOrdinal(pApprovedExe->sczId, -1, wzId, -1, FALSE)) |
| 133 | { | 133 | { |
| 134 | *ppApprovedExe = pApprovedExe; | 134 | *ppApprovedExe = pApprovedExe; |
| 135 | ExitFunction1(hr = S_OK); | 135 | ExitFunction1(hr = S_OK); |
