Skip to content

Use IsPackagedProcess() for package detection in PRI fallback#6500

Merged
guimafelipe merged 2 commits into
mainfrom
user/felipeda/use-ispackaged
May 28, 2026
Merged

Use IsPackagedProcess() for package detection in PRI fallback#6500
guimafelipe merged 2 commits into
mainfrom
user/felipeda/use-ispackaged

Conversation

@guimafelipe
Copy link
Copy Markdown
Contributor

@guimafelipe guimafelipe commented May 22, 2026

Use AppModel::Identity::IsPackagedProcess() instead of inferring packaged state from GetDefaultPriFileForCurrentPackage's HRESULT. The old check hr != HRESULT_FROM_WIN32(APPMODEL_ERROR_NO_PACKAGE) silently treats other errors as packaged.

Replace inferring packaged state from GetDefaultPriFileForCurrentPackage's
HRESULT with AppModel::Identity::IsPackagedProcess() which properly
handles GetCurrentPackageFullName errors.
@guimafelipe
Copy link
Copy Markdown
Contributor Author

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@guimafelipe guimafelipe marked this pull request as ready for review May 22, 2026 18:34
@guimafelipe
Copy link
Copy Markdown
Contributor Author

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@guimafelipe
Copy link
Copy Markdown
Contributor Author

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@guimafelipe guimafelipe merged commit 912dbdf into main May 28, 2026
50 checks passed
@guimafelipe guimafelipe deleted the user/felipeda/use-ispackaged branch May 28, 2026 04:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants