https://bugs.winehq.org/show_bug.cgi?id=41040
Bug ID: 41040 Summary: VariantChangeTypeEx lead to error when casting IUnknown(nil) -> IDispatch Product: Wine Version: 1.9.3 Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: oleaut32 Assignee: wine-bugs@winehq.org Reporter: alexeev@krista.ru Distribution: ---
Sample Delphi code, works well on Windows
var unk: IUnknown; V: Variant; begin unk := nil; V := VarAsType(unk, varDispatch); // type error here in wine end;
https://bugs.winehq.org/show_bug.cgi?id=41040
--- Comment #1 from Nikolay Sivov bunglehead@gmail.com --- Hi, Dmitry.
Could you attach a compiled binary for this test?
https://bugs.winehq.org/show_bug.cgi?id=41040
--- Comment #2 from Dmitry Alexeev alexeev@krista.ru --- Created attachment 55215 --> https://bugs.winehq.org/attachment.cgi?id=55215 Simple comandline app crashes on this error
https://bugs.winehq.org/show_bug.cgi?id=41040
Nikolay Sivov bunglehead@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 Status|UNCONFIRMED |NEW
--- Comment #3 from Nikolay Sivov bunglehead@gmail.com --- Yes, I think I see what's going on. By the way, on successful run I shouldn't expect any output at all right?
https://bugs.winehq.org/show_bug.cgi?id=41040
--- Comment #4 from Dmitry Alexeev alexeev@krista.ru --- Yes, empty output or crash on error.
https://bugs.winehq.org/show_bug.cgi?id=41040
--- Comment #5 from Nikolay Sivov bunglehead@gmail.com --- I sent a fix for that, https://www.winehq.org/pipermail/wine-patches/2016-August/152961.html.
https://bugs.winehq.org/show_bug.cgi?id=41040
Nikolay Sivov bunglehead@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download
https://bugs.winehq.org/show_bug.cgi?id=41040
Nikolay Sivov bunglehead@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |806ea12766849660a4cfa20e189 | |b6d96ba8f2891 Status|NEW |RESOLVED Resolution|--- |FIXED
--- Comment #6 from Nikolay Sivov bunglehead@gmail.com --- Fixed with http://source.winehq.org/git/wine.git/?a=commit;h=806ea12766849660a4cfa20e18..., please test.
https://bugs.winehq.org/show_bug.cgi?id=41040
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #7 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 1.9.16.
https://bugs.winehq.org/show_bug.cgi?id=41040
Michael Stefaniuc mstefani@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |mstefani@redhat.com Target Milestone|--- |1.8.x
https://bugs.winehq.org/show_bug.cgi?id=41040
Michael Stefaniuc mstefani@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|1.8.x |---
--- Comment #8 from Michael Stefaniuc mstefani@redhat.com --- Removing 1.8.x milestone from bugs included in 1.8.5.