From a5964c3b23b670257ead8793c5a1b5f71d77d674 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20H=C3=B6glinger-Stelzer?= Date: Mon, 11 May 2020 14:15:08 +0200 Subject: [PATCH] Removed unused code --- sys/EmulationTargetPDO.cpp | 2 -- sys/EmulationTargetPDO.hpp | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/sys/EmulationTargetPDO.cpp b/sys/EmulationTargetPDO.cpp index 87568a0..2987e8a 100644 --- a/sys/EmulationTargetPDO.cpp +++ b/sys/EmulationTargetPDO.cpp @@ -451,13 +451,11 @@ VOID ViGEm::Bus::Core::EmulationTargetPDO::EvtIoInternalDeviceControl( UNREFERENCED_PARAMETER(OutputBufferLength); UNREFERENCED_PARAMETER(InputBufferLength); - UNREFERENCED_PARAMETER(IoControlCode); NTSTATUS status = STATUS_INVALID_PARAMETER; PIRP irp; PURB urb; PIO_STACK_LOCATION irpStack; - //PUCHAR blobBuffer; TraceDbg(TRACE_BUSPDO, "%!FUNC! Entry"); diff --git a/sys/EmulationTargetPDO.hpp b/sys/EmulationTargetPDO.hpp index 617bf02..59c62f3 100644 --- a/sys/EmulationTargetPDO.hpp +++ b/sys/EmulationTargetPDO.hpp @@ -147,7 +147,7 @@ namespace ViGEm::Bus::Core // // This child objects' device object // - WDFDEVICE PdoDevice; + WDFDEVICE PdoDevice{}; // // Signals the bus that PDO is ready to receive data @@ -157,7 +157,7 @@ namespace ViGEm::Bus::Core // // Configuration descriptor size // - ULONG UsbConfigurationDescriptionSize; + ULONG UsbConfigurationDescriptionSize{}; }; typedef struct _PDO_IDENTIFICATION_DESCRIPTION