The MinGW.org Windows System Libraries
修订版 | 0c111acc00bc15f5270535a71ee1601a3ed4a168 (tree) |
---|---|
时间 | 2021-05-10 05:23:08 |
作者 | Keith Marshall <keith@user...> |
Commiter | Keith Marshall |
Correct TreeView_GetItemRect() syntax; cf. MinGW-Issue #41041.
@@ -1,3 +1,10 @@ | ||
1 | +2021-05-09 Keith Marshall <keith@users.osdn.me> | |
2 | + | |
3 | + Correct TreeView_GetItemRect() syntax; cf. MinGW-Issue #41041. | |
4 | + | |
5 | + * include/commctrl.h (TreeView_GetItemRect): Correct placement of | |
6 | + parentheses around typecast pointer reference assignment. | |
7 | + | |
1 | 8 | 2021-04-11 Keith Marshall <keith@users.osdn.me> |
2 | 9 | |
3 | 10 | Prepare and publish MinGW.org WSL-5.4.2 release. |
@@ -4585,7 +4585,7 @@ WINAPI BOOL _TrackMouseEvent (LPTRACKMOUSEEVENT); | ||
4585 | 4585 | (BOOL)(SNDMSG ((w), TVM_EXPAND, (c), (LPARAM)((HTREEITEM)(i)))) |
4586 | 4586 | |
4587 | 4587 | #define TreeView_GetItemRect( w, i, p, c ) \ |
4588 | - (*(HTREEITEM *)((p) = (i)), \ | |
4588 | + ( (*(HTREEITEM *)(p) = (i)), \ | |
4589 | 4589 | (BOOL)(SNDMSG ((w), TVM_GETITEMRECT, (c), (LPARAM)((LPRECT)(p)))) \ |
4590 | 4590 | ) |
4591 | 4591 | #define TreeView_GetCount( w ) \ |