Skip to content

EDITSTREAM record invalid size on x64 causing app crash

Fibonacci requested to merge (removed):main into main

Fix issue #40439 (closed)

SendMessage with WM_STREAMIN/WM_STREAMOUT and EDITSTREAM structure crashes on x64 because of invalild record size. Record needs to be packed.

var es = EDITSTREAM;

SendMessage(handle, EM_STREAMIN, SF_RTF, LPARAM(@es));

Merge request reports