<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Oct 26, 2019 at 8:55 AM Dmitry Timoshkov <<a href="mailto:dmitry@baikal.ru">dmitry@baikal.ru</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Damjan Jovanovic <<a href="mailto:damjan.jov@gmail.com" target="_blank">damjan.jov@gmail.com</a>> wrote:<br>
<br>
> This patch attempts to address the problem by patching RtlSizeHeap()<br>
> to subtract 8 (8 being HGLOBAL_STORAGE) from the pointer if it doesn't<br>
> seem like a valid pointer, to cater to GMEM_MOVEABLE pointers actually<br>
> starting 8 bytes earlier.<br>
<br>
Probably fixing GlobalAlloc() instead would be more correct.<br>
<br></blockquote><div><br></div><div>You're right. I am currently investigating global memory layout in different Windows versions. Please ignore this patch.</div><div><br></div></div></div>