[PATCH 2/2] ntdll: allow HeapSize to work with global GMEM_MOVEABLE pointers

Damjan Jovanovic damjan.jov at gmail.com
Sat Oct 26 09:45:32 CDT 2019


On Sat, Oct 26, 2019 at 8:55 AM Dmitry Timoshkov <dmitry at baikal.ru> wrote:

> Damjan Jovanovic <damjan.jov at gmail.com> wrote:
>
> > This patch attempts to address the problem by patching RtlSizeHeap()
> > to subtract 8 (8 being HGLOBAL_STORAGE) from the pointer if it doesn't
> > seem like a valid pointer, to cater to GMEM_MOVEABLE pointers actually
> > starting 8 bytes earlier.
>
> Probably fixing GlobalAlloc() instead would be more correct.
>
>
You're right. I am currently investigating global memory layout in
different Windows versions. Please ignore this patch.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20191026/bde471c5/attachment.htm>


More information about the wine-devel mailing list