Skip to content

Commit 4f9cf79

Browse files
changed string comparison for C++ sample, changed language around enabling feature based on domain
1 parent 94b2fad commit 4f9cf79

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

specs/IsNonClientRegionSupportEnabled.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ When set to `FALSE`, then all non-client region support will be disabled.
3131

3232
# Examples
3333
This example enables non-client region support for all pages on www.microsoft.com.
34-
Pages on other origins will not be trusted to use this feature.
34+
Pages on other origins will not have non-client region support enabled.
3535

3636
## Win32 C++
3737
```cpp
@@ -59,12 +59,12 @@ ScenarioNonClientRegionSupport::ScenarioNonClientRegionSupport(AppWindow* appWin
5959
BOOL enabled;
6060
CHECK_FAILURE(coreWebView2Settings12->get_IsNonClientRegionSupportEnabled(&enabled));
6161

62-
if (wcscmp(domain.get(), allowedHostName) == 0 && !enabled)
62+
if (_wcsicmp(domain.get(), allowedHostName) == 0 && !enabled)
6363
{
6464
CHECK_FAILURE(
6565
coreWebView2Settings12->put_IsNonClientRegionSupportEnabled(TRUE));
6666
}
67-
else if (wcscmp(domain.get(), allowedHostName) != 0 && enabled)
67+
else if (_wcsicmp(domain.get(), allowedHostName) != 0 && enabled)
6868
{
6969
CHECK_FAILURE(
7070
coreWebView2Settings12->put_IsNonClientRegionSupportEnabled(FALSE));

0 commit comments

Comments
 (0)