https://bugs.winehq.org/show_bug.cgi?id=33069
Damjan Jovanovic damjan.jov@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |damjan.jov@gmail.com
--- Comment #6 from Damjan Jovanovic damjan.jov@gmail.com --- To reproduce this, in VB6 you go to "Project" -> "Components..." and tick one of those boxes and click "OK", right?
If so, I get a messagebox with
"System Error &H80004001 (-2147467263)."
80004001 is E_NOTIMPL.
Attaching winedbg and getting a stack trace while the messagebox is shown doesn't show any COM-related functions on the stack. The console output is:
---snip--- 0024:fixme:ole:ITypeLib2_fnGetDocumentation2 (02271890) index -1 lcid 0 half implemented stub! 0024:fixme:ole:ICreateTypeLib2_fnSetHelpStringContext 03288090 250000 - stub ---snip---
The function ICreateTypeLib2_fnSetHelpStringContext() in dlls/oleaut32/typelib.c does indeed return E_NOTIMPL:
---snip--- static HRESULT WINAPI ICreateTypeLib2_fnSetHelpStringContext(ICreateTypeLib2 *iface, ULONG helpStringContext) { ITypeLibImpl *This = impl_from_ICreateTypeLib2(iface); FIXME("%p %u - stub\n", This, helpStringContext); return E_NOTIMPL; } ---snip---
If I hack it to return E_OUTOFMEMORY instead, does the messagebox show the new error code?
Yes. The messagebox then prints "Out of memory" instead, so it must be coming from there.
What if I hack it to return S_OK instead, indicating success?
It seems to proceed a little further, then gets a stack overflow and hangs:
---snip--- 0024:fixme:ole:CoIsOle1Class {648a5600-2c6e-101b-82b6-000000000014} 0024:err:ole:LHashValOfNameSysA Unknown lcid 7f, treating as latin-based, please report (repeated many times) 0024:err:ole:LHashValOfNameSysA Unknown lcid 7f, treating as latin-based, please report wine: Unhandled stack overflow at address 7BC1BB10 (thread 0024), starting debugger... 0024:err:virtual:virtual_setup_exception stack overflow 1232 bytes in thread 0024 addr 0x7bc3f60f stack 0x220b30 (0x220000-0x221000-0x320000) ---snip---
Test done with Wine 5.19