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

Back to archive index
MinGW Notification List mingw****@lists*****
Tue Dec 29 08:09:33 JST 2020


#41072: the definition of tagRAWHID is wrong

  Open Date: 2020-12-24 21:03
Last Update: 2020-12-29 08:09

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-29 08:09 Updated by: royqh1979

Comment:

Sorry for the error, but i don't know how to edit the ticket. And I don't know
how to input '[ 1 ]' without spaces among '[' , '1' and ']' correctly.

But I think I have give enough info for u to investigate the problem.

And I really don't know why you don't use github which has more users and much
easier to submit PR.

And I have switched to mingw-w64 and u don't need to investigate any more,
thanks any way.



---------------------------------------------------------------------
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