[PATCH] comctl32/treeview: Make textWidth in struct _TREEITEM compatible with native one.

Zhiyi Zhang yi.gd.cn at gmail.com
Fri Jan 19 23:40:25 CST 2018

Hi Nikolay,

This fixes https://bugs.winehq.org/show_bug.cgi?id=35127

As I was working through bug 35127, I noticed that you had once changed 
the layout of struct _TREEITEM in commit 

Now I am sure that textWidth in struct _TREEITEM is a WORD and is at the
offset 0x1a. You can check out the bug comments for details. I tried to 
find out what is at 0x18 but no luck, thus I am adding a unknown member 
to make textWidth at the right offset.

  What do you think of the patch? Do you know what member is at struct 
_TREEITEM+0x18? I can use your opinion with this patch.

Zhiyi Zhang

Signed-off-by: Zhiyi Zhang <yi.gd.cn at gmail.com>
  dlls/comctl32/tests/treeview.c | 58 
  dlls/comctl32/treeview.c       |  3 ++-
  2 files changed, 52 insertions(+), 9 deletions(-)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-comctl32-treeview-Make-textWidth-in-struct-_TREEITEM-c.txt
Type: text/x-patch
Size: 5486 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20180120/66a06521/attachment.bin>

More information about the wine-devel mailing list