Skip to content

Conversation

@HariniMalothu17
Copy link
Contributor

@HariniMalothu17 HariniMalothu17 commented Jan 28, 2026

Description

Vissual Studio 2026’s stricter compiler/static-analysis settings started treating “assignment inside conditionals” as errors (not just warnings). The change rewrites patterns like if (p = get()) into a separate assignment followed by a boolean check to satisfy strict checks of Visual Studio 2026

Type of Change

  • Bug fix (non-breaking change which fixes an issue)

Why

To make rnw 0.81 compatible with vs2026

What

The commit updates conditional-assignment sites in:
[UiaHelpers.cpp]
[queueService.cpp]
[uiScheduler_winrt.cpp]
[OriginPolicyHttpFilter.cpp]

Screenshots

image

Testing

Tested via playground.Working as expected

Changelog

Should this change be included in the release notes: no

Microsoft Reviewers: Open in CodeFlow

@HariniMalothu17 HariniMalothu17 requested review from a team as code owners January 28, 2026 06:41
@HariniMalothu17 HariniMalothu17 changed the title visual studio 2026 strict check fix [0.81]Visual studio 2026 strict check fix Jan 28, 2026
Copy link
Contributor

@iamAbhi-916 iamAbhi-916 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants