https://bugs.winehq.org/show_bug.cgi?id=51456
Bug ID: 51456 Summary: oleaut32:typelib: test_CreateTypeLib(SYS_WIN32) fails in 64-bit Wine Product: Wine Version: 6.10 Hardware: x86-64 OS: Linux Status: NEW Severity: normal Priority: P2 Component: oleaut32 Assignee: wine-bugs@winehq.org Reporter: fgouget@codeweavers.com Distribution: ---
oleaut32:typelib has many failures in 64-bit Wine, the first one of which is because Wine returns the wrong size for a structure:
https://test.winehq.org/data/patterns.html#oleaut32:typelib
typelib.c:2169: Test failed: retrieved IUnknown gave wrong cbSizeVft: 24
In the SYS_WIN32 case cbSizeVft should be 3 * 4 = 12 but it is still set to 24 by MSFT_DoTypeInfo():
ptiRet->typeattr.cbSizeVft = tiBase.cbSizeVft;
It makes sense for cbSizeVft to be 24 on the 64-bit side, but somewhere there should be code to adjust it to account for the SYS_WIN32 on 64-bit case. But I don't know where that should happen.
https://bugs.winehq.org/show_bug.cgi?id=51456
François Gouget fgouget@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |source, testcase
https://bugs.winehq.org/show_bug.cgi?id=51456
François Gouget fgouget@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Fixed by SHA1| |43e5f9e4bfa65ccea633df244a7 | |ec0c790ed8ffb Resolution|--- |FIXED
--- Comment #1 from François Gouget fgouget@codeweavers.com --- This got fixed by the commit below:
commit 43e5f9e4bfa65ccea633df244a7ec0c790ed8ffb Author: Alexandre Julliard julliard@winehq.org Date: Fri Sep 9 17:27:27 2022 +0200
oleaut32: Check that the 32/64 syskind matches when getting a typelib from the cache.
Fixes test failures on 64-bit.
https://bugs.winehq.org/show_bug.cgi?id=51456
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #2 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 8.0-rc1.