https://bugs.winehq.org/show_bug.cgi?id=46270
Bug ID: 46270 Summary: STGMEDIUM_UserFree unconditional releases a HGLOBAL Product: Wine Version: unspecified Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: ole32 Assignee: wine-bugs@winehq.org Reporter: mark.jansen@reactos.org Distribution: ---
Created attachment 62980 --> https://bugs.winehq.org/attachment.cgi?id=62980 ReactOS +ole capture
When an STGMEDIUM is marshalled locally (just copied), the HGLOBAL is actually deleted by the stub. This leaves the recipient of the STGMEDIUM with a head object.
Before 5293cb71838bba86961f62e2317f532c9812db0c this was not a problem, because an HGLOBAL was always treated as 'remote'.
Thanks to Zebediah Figura for figuring out the problem based on my very incomplete description :)