https://bugs.winehq.org/show_bug.cgi?id=53926
--- Comment #2 from Zeb Figura z.figura12@gmail.com --- Thanks for the detailed report. I've submitted a merge request that should hopefully fix this:
https://gitlab.winehq.org/wine/wine/-/merge_requests/1800/diffs
With the attached test it seems to get past that error, but then crashes at the "IUnknown_Release(unk)" on line 550. Since "unk" was never properly initialized I'm assuming that's the "correct" behaviour, but I never bothered testing with the old typelib marshaller.
FWIW, the patch from comment 1 is probably wrong, for reasons that are mostly described in the patch I sent, but it's annoyingly difficult to actually test.