diff options
| author | Rob Mensching <rob@firegiant.com> | 2025-11-01 20:24:25 -0700 |
|---|---|---|
| committer | Rob Mensching <rob@firegiant.com> | 2025-11-03 14:49:39 -0800 |
| commit | 4d626c294c4783d454e27ea4e5614037dac8576e (patch) | |
| tree | 51d822f48716e4c5ef2a51ca28925896f221b521 /src/api | |
| parent | 33c12fa386aa7ace7a6bd06a45bc3ecf17e9c8f5 (diff) | |
| download | wix-4d626c294c4783d454e27ea4e5614037dac8576e.tar.gz wix-4d626c294c4783d454e27ea4e5614037dac8576e.tar.bz2 wix-4d626c294c4783d454e27ea4e5614037dac8576e.zip | |
Use CompareStringOrdinal() instead of CompareString() case-insensitive
This commit moves to the modern CompareStringOrdinal() for all case-insensitve
uses of CompareString() with the invariant locale.
Partially resolves 6947
Diffstat (limited to 'src/api')
| -rw-r--r-- | src/api/burn/balutil/balinfo.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/api/burn/balutil/balinfo.cpp b/src/api/burn/balutil/balinfo.cpp index 6f609a40..8784a380 100644 --- a/src/api/burn/balutil/balinfo.cpp +++ b/src/api/burn/balutil/balinfo.cpp | |||
| @@ -43,14 +43,14 @@ DAPI_(HRESULT) BalInfoParseCommandLine( | |||
| 43 | 43 | ||
| 44 | if (argv[i][0] == L'-' || argv[i][0] == L'/') | 44 | if (argv[i][0] == L'-' || argv[i][0] == L'/') |
| 45 | { | 45 | { |
| 46 | if (CSTR_EQUAL == ::CompareStringW(LOCALE_INVARIANT, NORM_IGNORECASE, &argv[i][1], -1, L"norestart", -1)) | 46 | if (CSTR_EQUAL == ::CompareStringOrdinal(&argv[i][1], -1, L"norestart", -1, TRUE)) |
| 47 | { | 47 | { |
| 48 | if (BAL_INFO_RESTART_UNKNOWN == pCommand->restart) | 48 | if (BAL_INFO_RESTART_UNKNOWN == pCommand->restart) |
| 49 | { | 49 | { |
| 50 | pCommand->restart = BAL_INFO_RESTART_NEVER; | 50 | pCommand->restart = BAL_INFO_RESTART_NEVER; |
| 51 | } | 51 | } |
| 52 | } | 52 | } |
| 53 | else if (CSTR_EQUAL == ::CompareStringW(LOCALE_INVARIANT, NORM_IGNORECASE, &argv[i][1], -1, L"forcerestart", -1)) | 53 | else if (CSTR_EQUAL == ::CompareStringOrdinal(&argv[i][1], -1, L"forcerestart", -1, TRUE)) |
| 54 | { | 54 | { |
| 55 | if (BAL_INFO_RESTART_UNKNOWN == pCommand->restart) | 55 | if (BAL_INFO_RESTART_UNKNOWN == pCommand->restart) |
| 56 | { | 56 | { |
