patterns: Fixed a few errors

This commit is contained in:
WerWolv
2024-02-25 22:59:32 +01:00
parent f70b7066b9
commit dac2e0f786
3 changed files with 4 additions and 6 deletions

View File

@@ -1,5 +1,3 @@
#pragma once
/*!
Library for doing raw memory accesses and other low-level operations.
*/

View File

@@ -4,7 +4,7 @@
#pragma MIME application/x-dmp
import type.time;
import type/types.win32;
import type.types.win32;
import type.size;
using RVA = ULONG32;

View File

@@ -138,12 +138,12 @@ struct DeviceDescriptor {
if (bDeviceClass == InterfaceClass::Hub) {
HubInterfaceSubClass bDeviceSubClass;
if (bDeviceSubClass == HubInterfaceSubClass::Hub)
HubInterfaceProtocol bDeviceSubClass;
HubInterfaceProtocol bDeviceSubClassProtocol;
else
u8 bDeviceSubClass;
u8 bDeviceSubClassProtocol;
} else if (bDeviceClass == InterfaceClass::AudioVideoDevice) {
AudioVideoDeviceSubClass bDeviceSubClass;
u8 bDeviceSubClass;
u8 bDeviceSubClassProtocol;
} else {
u8 bDeviceSubClass;
}