[RESEND] atl: Remove freeing of an invalid pointer

Aleksey Bragin aleksey at reactos.org
Tue May 6 13:41:01 CDT 2008


Sorry, I didn't attach the actual patch itself in the previous message.

Changelog: Don't try to HeapFree a handle returned by LoadResource.

To quote msdn (http://msdn.microsoft.com/en-us/library/ms648046.aspx)
on this issue:
1. "the return value is a handle to the data associated with the
resource"
2. "Do not pass this handle to the GlobalLock or GlobalFree function".


With the best regards,
Aleksey Bragin.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: registrar.c.patch
Type: application/octet-stream
Size: 614 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20080506/181c06d4/attachment.obj 


More information about the wine-patches mailing list