https://bugs.winehq.org/show_bug.cgi?id=48803
--- Comment #5 from Nikolay Sivov bunglehead@gmail.com --- Created attachment 66730 --> https://bugs.winehq.org/attachment.cgi?id=66730 patch
Hi, Roman.
Attach a test that shows how to intercept as early as NCCREATE/CREATE. You'll see that with proposed change format rectangle will be set too early on NCCREATE, while on Windows it's set on CREATE. So it changes something that already works correctly.
Patch also contains a fix for one case of division by zero, it fixes EM_SETSEL(0,0) test crash, I haven't tried actual application. There is a couple more places we have to review and possibly fix as well.