[Bug 44147] regression in ole2 datacache

wine-bugs at winehq.org wine-bugs at winehq.org
Sat Dec 9 15:28:18 CST 2017


https://bugs.winehq.org/show_bug.cgi?id=44147

Sergio Gómez Del Real <sdelreal at codeweavers.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |sdelreal at codeweavers.com

--- Comment #2 from Sergio Gómez Del Real <sdelreal at 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.


More information about the wine-bugs mailing list