mirror of
https://github.com/reactos/reactos.git
synced 2024-09-29 22:16:01 +00:00
[HIDPARSER] Don't include pshpack1.h before including other headers
NEVER DO THIS! It is guaranteed to be wrong. Instead always individually pack single structures that need packing. This fixes USB mouse on 64 bit builds.
This commit is contained in:
parent
2dbbfe86ab
commit
9229e73f03
|
@ -2,7 +2,6 @@
|
||||||
#define _HIDPARSER_H_
|
#define _HIDPARSER_H_
|
||||||
|
|
||||||
#include <wdm.h>
|
#include <wdm.h>
|
||||||
#include <pshpack1.h>
|
|
||||||
#define _HIDPI_
|
#define _HIDPI_
|
||||||
#define _HIDPI_NO_FUNCTION_MACROS_
|
#define _HIDPI_NO_FUNCTION_MACROS_
|
||||||
#include <hidpddi.h>
|
#include <hidpddi.h>
|
||||||
|
@ -84,6 +83,7 @@ typedef struct
|
||||||
UCHAR Tag:4;
|
UCHAR Tag:4;
|
||||||
}ITEM_PREFIX, *PITEM_PREFIX;
|
}ITEM_PREFIX, *PITEM_PREFIX;
|
||||||
|
|
||||||
|
#include <pshpack1.h>
|
||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
ITEM_PREFIX Prefix;
|
ITEM_PREFIX Prefix;
|
||||||
|
@ -99,6 +99,7 @@ typedef struct
|
||||||
}Data;
|
}Data;
|
||||||
|
|
||||||
}SHORT_ITEM, *PSHORT_ITEM;
|
}SHORT_ITEM, *PSHORT_ITEM;
|
||||||
|
#include <poppack.h>
|
||||||
|
|
||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue