[Bug 39101] New: Visual Studio Compiler creates invalid interface from a typelib

wine-bugs at winehq.org wine-bugs at winehq.org
Mon Aug 17 23:49:28 CDT 2015


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 at winehq.org
          Reporter: leslie_alistair at 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.

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.



More information about the wine-bugs mailing list