On Wed Apr 22 02:37:03 2026 +0000, Nikolay Sivov wrote:
Could you try to test what happens with this on Windows? Specifically what the url looks like when it reaches the handler. I don't know if it's possible to override the file:// handler with MFRegisterLocalSchemeHandler(). Or maybe this is stripped earlier in case of "///schema://..." to pick up correct handler. `MFRegisterLocalSchemeHandler()` worked, and native prepends "file://" without any extra slashes before calling `BeginCreateObject()`. I didn't include the test. It's only implemented up to `BeginCreateObject()` and there doesn't seem to be a function for unregistering the handler, so we would always need to ensure the test is called last.
I edited the code comment. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/10708#note_137303