https://bugs.winehq.org/show_bug.cgi?id=44147 Sergio Gómez Del Real <sdelreal(a)codeweavers.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |sdelreal(a)codeweavers.com --- Comment #2 from Sergio Gómez Del Real <sdelreal(a)codeweavers.com> --- Hi. So the error is in calling GlobalSize with an invalid handle. According to MSDN: "If the specified handle is not valid or if the object has been discarded, the return value is zero. To get extended error information, call GetLastError." I relied on this specification to use the function unconditionally. I could just wrap the call with the result of GlobalLock, which returns NULL in case of invalid handle, but I'm not sure if we should instead look into GlobalSize and see why 0 is not being returned in case of invalid handle. -- 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.