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

Dmitry Timoshkov dmitry at baikal.ru
Sat Oct 26 01:55:22 CDT 2019


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.

-- 
Dmitry.



More information about the wine-devel mailing list