[MinGW-Notify] [mingw] #41072: the definition of tagRAWHID is wrong

Back to archive index
MinGW Notification List mingw****@lists*****
Thu Dec 24 21:03:27 JST 2020


#41072: the definition of tagRAWHID is wrong

  Open Date: 2020-12-24 21:03
Last Update: 2020-12-24 21:03

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

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

Last Changes/Comment on this Ticket:
2020-12-24 21:03 Updated by: royqh1979
 * New Ticket "the definition of tagRAWHID is wrong" created



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

      Reporter: royqh1979
         Owner: (None)
          Type: Issues
        Status: Open
      Priority: 5 - Medium
     MileStone: (None)
     Component: (None)
      Severity: 5 - Medium
    Resolution: None
---------------------------------------------------------------------

Ticket details:

according to MSDN https://docs.microsoft.com/en-us/windows/win32/api/winuser/
ns-winuser-rawhid

the definition of tagRAWHID is as the following: typedef struct tagRAWHID { ……

BYTE bRawData1;

} ……;

but in mingw’s win32.h, the definition is : typedef struct tagRAWHID { ……

BYTE bRawData;

} ……;

Freeglut 3.2.1 can't compile with this definition, the error is : F:\Temp\test\
freeglut-3.2.1\src\mswin\fg_spaceball_mswin.c:169:71: error: subscripted value
is neither array nor pointer nor vector

169 | short* pnData = (short*)(&pRawInput->data.hid.bRawData1);


-- 
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/41072
RSS feed for this Ticket:
    https://osdn.net/ticket/ticket_rss.php?group_id=3917&tid=41072



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