aboutsummaryrefslogtreecommitdiff
path: root/src/tools/thmviewer/thmviewer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/thmviewer/thmviewer.cpp')
-rw-r--r--src/tools/thmviewer/thmviewer.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/tools/thmviewer/thmviewer.cpp b/src/tools/thmviewer/thmviewer.cpp
index 5d4b88f5..12d311af 100644
--- a/src/tools/thmviewer/thmviewer.cpp
+++ b/src/tools/thmviewer/thmviewer.cpp
@@ -241,7 +241,7 @@ static HRESULT ProcessCommandLine(
241 { 241 {
242 if (argv[i][0] == L'-' || argv[i][0] == L'/') 242 if (argv[i][0] == L'-' || argv[i][0] == L'/')
243 { 243 {
244 if (CSTR_EQUAL == ::CompareStringW(LOCALE_INVARIANT, NORM_IGNORECASE, &argv[i][1], -1, L"lang", -1)) 244 if (CSTR_EQUAL == ::CompareStringOrdinal(&argv[i][1], -1, L"lang", -1, TRUE))
245 { 245 {
246 if (i + 1 >= argc) 246 if (i + 1 >= argc)
247 { 247 {
@@ -254,7 +254,7 @@ static HRESULT ProcessCommandLine(
254 else 254 else
255 { 255 {
256 LPCWSTR wzExtension = PathExtension(argv[i]); 256 LPCWSTR wzExtension = PathExtension(argv[i]);
257 if (CSTR_EQUAL == ::CompareStringW(LOCALE_INVARIANT, NORM_IGNORECASE, wzExtension, -1, L".wxl", -1)) 257 if (CSTR_EQUAL == ::CompareStringOrdinal(wzExtension, -1, L".wxl", -1, TRUE))
258 { 258 {
259 hr = StrAllocString(psczWxlFile, argv[i], 0); 259 hr = StrAllocString(psczWxlFile, argv[i], 0);
260 } 260 }
@@ -495,14 +495,14 @@ static void OnNewTheme(
495 tvi.item.lParam = i + 1; //prgdwPageIds[i]; - TODO: do the right thing here by calling ThemeGetPageIds(), should not assume we know how the page ids will be calculated. 495 tvi.item.lParam = i + 1; //prgdwPageIds[i]; - TODO: do the right thing here by calling ThemeGetPageIds(), should not assume we know how the page ids will be calculated.
496 496
497 HTREEITEM hti = reinterpret_cast<HTREEITEM>(::SendMessage(pTreeControl->hWnd, TVM_INSERTITEMW, 0, reinterpret_cast<LPARAM>(&tvi))); 497 HTREEITEM hti = reinterpret_cast<HTREEITEM>(::SendMessage(pTreeControl->hWnd, TVM_INSERTITEMW, 0, reinterpret_cast<LPARAM>(&tvi)));
498 if (*wzSelectedPage && CSTR_EQUAL == ::CompareStringW(LOCALE_NEUTRAL, 0, pPage->sczName, -1, wzSelectedPage, -1)) 498 if (*wzSelectedPage && CSTR_EQUAL == ::CompareStringOrdinal(pPage->sczName, -1, wzSelectedPage, -1, FALSE))
499 { 499 {
500 htiSelected = hti; 500 htiSelected = hti;
501 } 501 }
502 } 502 }
503 } 503 }
504 504
505 if (*wzSelectedPage && CSTR_EQUAL == ::CompareStringW(LOCALE_NEUTRAL, 0, L"Application", -1, wzSelectedPage, -1)) 505 if (*wzSelectedPage && CSTR_EQUAL == ::CompareStringOrdinal(L"Application", -1, wzSelectedPage, -1, FALSE))
506 { 506 {
507 htiSelected = tvi.hParent; 507 htiSelected = tvi.hParent;
508 } 508 }
@@ -519,7 +519,7 @@ static BOOL OnThemeLoadingControl(
519 __in THEME_LOADINGCONTROL_RESULTS* pResults 519 __in THEME_LOADINGCONTROL_RESULTS* pResults
520 ) 520 )
521{ 521{
522 if (CSTR_EQUAL == ::CompareStringW(LOCALE_NEUTRAL, 0, pArgs->pThemeControl->sczName, -1, L"Tree", -1)) 522 if (CSTR_EQUAL == ::CompareStringOrdinal(pArgs->pThemeControl->sczName, -1, L"Tree", -1, FALSE))
523 { 523 {
524 pResults->wId = THMVWR_CONTROL_TREE; 524 pResults->wId = THMVWR_CONTROL_TREE;
525 } 525 }