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 :)
https://bugs.winehq.org/show_bug.cgi?id=46270
Mark Jansen mark.jansen@reactos.org changed:
What |Removed |Added ---------------------------------------------------------------------------- OS|Linux |other
https://bugs.winehq.org/show_bug.cgi?id=46270
Zebediah Figura z.figura12@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |regression Regression SHA1| |5293cb71838bba86961f62e2317 | |f532c9812db0c Summary|STGMEDIUM_UserFree |ReactOS explorer.exe can't |unconditional releases a |delete objects (use-after |HGLOBAL |free caused by incorrect | |free in | |STGMEDIUM_Release()) CC| |z.figura12@gmail.com
https://bugs.winehq.org/show_bug.cgi?id=46270
Nikolay Sivov bunglehead@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Version|unspecified |4.0-rc1
https://bugs.winehq.org/show_bug.cgi?id=46270
Zebediah Figura z.figura12@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |FIXED Fixed by SHA1| |25b136d40080a80c006b89e0270 | |8d2e248504a42
--- Comment #1 from Zebediah Figura z.figura12@gmail.com --- This should be fixed by https://source.winehq.org/git/wine.git/commitdiff/25b136d40080a80c006b89e027....
https://bugs.winehq.org/show_bug.cgi?id=46270
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #2 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 4.0-rc2.