https://bugs.winehq.org/show_bug.cgi?id=39101
Bug ID: 39101 Summary: Visual Studio Compiler creates invalid interface from a typelib Product: Wine Version: 1.7.49 Hardware: x86 OS: Linux Status: NEW Severity: normal Priority: P2 Component: oleaut32 Assignee: wine-bugs@winehq.org Reporter: leslie_alistair@hotmail.com Distribution: ---
Created attachment 52094 --> https://bugs.winehq.org/attachment.cgi?id=52094 Sample Project
winetricks vc2008express
Open the Attached project and compile.
StdAfx.h has line. #import "../typelibs/Debug/typelibs.tlb"
which causes the compiler to get generate typelibs.tlh and typelibs.tli files. These files represent the interfaces that are defined in the TLB.
Under WINE, the file created (runme\Debug\typelibs.tlh),
contains a line, like below, for every function in the base interfaces(s).
virtual HRESULT _VtblGapPlaceholder1( ) { return E_NOTIMPL; }
whereas on windows these lines aren't there.
These extra lines cause the V Table to be incorrect and programs crash when any of the interface functions are called.