[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:
Timo Kreuzer 2021-06-09 10:54:05 +02:00
parent 2dbbfe86ab
commit 9229e73f03

View file

@ -2,7 +2,6 @@
#define _HIDPARSER_H_
#include <wdm.h>
#include <pshpack1.h>
#define _HIDPI_
#define _HIDPI_NO_FUNCTION_MACROS_
#include <hidpddi.h>
@ -84,6 +83,7 @@ typedef struct
UCHAR Tag:4;
}ITEM_PREFIX, *PITEM_PREFIX;
#include <pshpack1.h>
typedef struct
{
ITEM_PREFIX Prefix;
@ -99,6 +99,7 @@ typedef struct
}Data;
}SHORT_ITEM, *PSHORT_ITEM;
#include <poppack.h>
typedef struct
{