26 Oct
2019
26 Oct
'19
6:55 a.m.
Damjan Jovanovic <damjan.jov(a)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.