[MinGW-Notify] [mingw] #41041: Define of TreeView_GetItemRect error

Back to archive index
MinGW Notification List mingw****@lists*****
Wed Apr 14 04:34:36 JST 2021


#41041: Define of TreeView_GetItemRect error

  Open Date: 2020-12-10 04:17
Last Update: 2021-04-13 20:34

URL for this Ticket:
    https://osdn.net//projects/mingw/ticket/41041
RSS feed for this Ticket:
    https://osdn.net/ticket/ticket_rss.php?group_id=3917&tid=41041

---------------------------------------------------------------------

Last Changes/Comment on this Ticket:
2021-04-13 20:34 Updated by: keith
 * Owner Update from (None) to keith
 * Resolution Update from None to Accepted
 * Details Updated

Comment:

Reply To royqh1979
In include/commctrl.h, line 4587-4590:
...
line 4588
   (*(HTREEITEM *)((p) = (i)),
   is wrong ...
Thanks.  I agree with your assessment, and with your proposed correction.  You could have laid the report out better, (as I have done now), and had you provided a suitable patch, it might have made it into WSL-5.4.2.  As it is now, I've corrected it in my local repository copy, and will push it for inclusion in the next release.
How would you like the attribution to appear, in the ChangeLog?

---------------------------------------------------------------------
Ticket Status:

      Reporter: royqh1979
         Owner: keith
          Type: Issues
        Status: Open [Owner assigned]
      Priority: 5 - Medium
     MileStone: (None)
     Component: (None)
      Severity: 5 - Medium
    Resolution: Accepted
---------------------------------------------------------------------

Ticket details:

In include/commctrl.h, line 4587-4590:
#define TreeView_GetItemRect( w, i, p, c )				\
  (*(HTREEITEM *)((p) = (i)),						\
    (BOOL)(SNDMSG ((w), TVM_GETITEMRECT, (c), (LPARAM)((LPRECT)(p))))	\
  )
line 4588
  (*(HTREEITEM *)((p) = (i)),
is wrong; should be:
  ((*(HTREEITEM *)(p) = (i)),


-- 
Ticket information of MinGW - Minimalist GNU for Windows project
MinGW - Minimalist GNU for Windows Project is hosted on OSDN

Project URL: https://osdn.net/projects/mingw/
OSDN: https://osdn.net

URL for this Ticket:
    https://osdn.net/projects/mingw/ticket/41041
RSS feed for this Ticket:
    https://osdn.net/ticket/ticket_rss.php?group_id=3917&tid=41041



More information about the MinGW-Notify mailing list
Back to archive index