https://bugs.winehq.org/show_bug.cgi?id=54120
Bug ID: 54120 Summary: Multiple failed tests in rust bindings to windows - windows-rs crate Product: Wine Version: 7.22 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: mikrutrafal@protonmail.com Distribution: ---
Created attachment 73652 --> https://bugs.winehq.org/attachment.cgi?id=73652 Test result
Steps to reproduce ``` winetricks nocrashdialog # Some tests freeze until user close crash dialog, so is better to disable it
wget https://static.rust-lang.org/dist/rust-1.65.0-x86_64-pc-windows-gnu.msi msiexec /i rust-1.65.0-x86_64-pc-windows-gnu.msi /quiet # Not sure about it, just install it
git clone https://github.com/microsoft/windows-rs.git cd windows-rs git checkout bd2471485755fd40f0dd0ee3e181db5d6e57d9e2 rm crates/tests/component crates/tests/component_client -r wine cargo test --no-fail-fast ```
45 tests fails with wine-staging 7.22
In attachment is log from this run
There is 61 panics in logs: - 42 - invalid result(agile, alternate_success_code, winrt x3, win32_arrays x4, library x33) - 4 - unimplemented functions (bstr, core, non_com_existing, win, query_signature) - 15 - translation/comparing text result(error, hresult, pcstr, pcwstr, pstr, pwstr, enums, std, trim, error, hresult, winrt x4)
https://bugs.winehq.org/show_bug.cgi?id=54120
--- Comment #1 from Nikolay Sivov bunglehead@gmail.com --- SysAddRefString() one is potentially interesting, but something that's not used a lot. It's probably using some global storage for such pins.
It's better to report separate issues for such crashes, they are not related to each other.
https://bugs.winehq.org/show_bug.cgi?id=54120
--- Comment #2 from Nikolay Sivov bunglehead@gmail.com --- Created attachment 73654 --> https://bugs.winehq.org/attachment.cgi?id=73654 patch
Attaching a fix for InitPropVariantFromStringVector().