WindowsAppSDK icon indicating copy to clipboard operation
WindowsAppSDK copied to clipboard

MrmGetFilePathFromName violates its document

Open Berrysoft opened this issue 4 months ago • 3 comments

Describe the bug

The document and comments of this method indicates that it will always succeed even if the app doesn't have a PRI file.

https://github.com/microsoft/WindowsAppSDK/blob/53d32b0589c5cbbc4ecf098344d9b27993742a22/dev/MRTCore/mrt/Core/src/MRM.cpp#L964-L967

However, it returns ERROR_FILE_NOT_FOUND:

https://github.com/microsoft/WindowsAppSDK/blob/53d32b0589c5cbbc4ecf098344d9b27993742a22/dev/MRTCore/mrt/Core/src/MRM.cpp#L1085

I have created #5828 to fix it, but no one takes care of it.

Steps to reproduce the bug

Create a WinUI3 program without PRI files. I know it's a little hard, but see:

https://github.com/microsoft/WindowsAppSDK/issues/5814

https://github.com/Alovchin91/winui3-rs/issues/5

Expected behavior

The behavior of the method should match its document.

Screenshots

No response

NuGet package version

Windows App SDK 1.8.2: 1.8.251003001

Packaging type

Unpackaged

Windows version

Windows 11 version 24H2 (26100, June 2025 Update)

IDE

Visual Studio 2022

Additional context

No response

Berrysoft avatar Oct 22 '25 17:10 Berrysoft

Dupe of #5814 ?

DarranRowe avatar Oct 22 '25 23:10 DarranRowe

I'm sure that it would be fixed by #5828, but no maintainer takes care of it.

Berrysoft avatar Nov 11 '25 11:11 Berrysoft