https://bugs.winehq.org/show_bug.cgi?id=47050
Bug ID: 47050 Summary: typedef'd anonymous structs typedef'd names are not used in interface methods Product: Wine Version: 4.5 Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: rpc Assignee: wine-bugs@winehq.org Reporter: richard@torproject.org Distribution: ---
The widl (and midl) tool generate a unique name for anonymous structs, but midl also includes the typedef'd name and uses it for interface methods. With the following struct definition:
typedef struct { long data; } Bar;
widl function signatures like this:
void _stdcall doBaz([in] __WIDL_TypedefBug_generated_name_00000000* b);
while midl generates this:
void _stdcall doBaz([in] Bar* b);
min-repro:
https://github.com/pospeselr/mingw-widl-bug/tree/typedef_bug
Includes tlb generated by widl 4.5 and midl 8.01.0622
https://bugs.winehq.org/show_bug.cgi?id=47050
Nikolay Sivov bunglehead@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|rpc |tools
https://bugs.winehq.org/show_bug.cgi?id=47050
--- Comment #1 from Richard Pospesel richard@torproject.org --- Blocker for Mozilla bug #1520177: ( https://bugzilla.mozilla.org/show_bug.cgi?id=1520177 )
https://bugs.winehq.org/show_bug.cgi?id=47050
--- Comment #2 from Richard Pospesel richard@torproject.org --- I've a patch for this that's dependent on the fix to 47035, will submit it once 47035 goes through. In the meantime the fix can be found here:
https://github.com/pospeselr/wine/commit/acc1364ca73af4626702b44e6508da54a08...
https://bugs.winehq.org/show_bug.cgi?id=47050
Zebediah Figura z.figura12@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |z.figura12@gmail.com Component|tools |rpc
--- Comment #3 from Zebediah Figura z.figura12@gmail.com --- Fixed by https://source.winehq.org/git/wine.git/commitdiff/4b1dfa60371a69f978455edc52a2a1cfef33eb4f; thanks Richard.
https://bugs.winehq.org/show_bug.cgi?id=47050
Zebediah Figura z.figura12@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Fixed by SHA1| |4b1dfa60371a69f978455edc52a | |2a1cfef33eb4f Status|UNCONFIRMED |RESOLVED
--- Comment #4 from Zebediah Figura z.figura12@gmail.com --- Actually marking fixed.
https://bugs.winehq.org/show_bug.cgi?id=47050
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #5 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 4.15.
https://bugs.winehq.org/show_bug.cgi?id=47050
--- Comment #6 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 4.15.
https://bugs.winehq.org/show_bug.cgi?id=47050
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|CLOSED |RESOLVED
--- Comment #7 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 4.15.
https://bugs.winehq.org/show_bug.cgi?id=47050
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #8 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 4.15.