diff --git a/Controllers/CorsairPeripheralV2Controller/CorsairPeripheralV2Controller.h b/Controllers/CorsairPeripheralV2Controller/CorsairPeripheralV2Controller.h index af48dab7f..3c0915159 100644 --- a/Controllers/CorsairPeripheralV2Controller/CorsairPeripheralV2Controller.h +++ b/Controllers/CorsairPeripheralV2Controller/CorsairPeripheralV2Controller.h @@ -65,7 +65,7 @@ class CorsairPeripheralV2Controller { public: CorsairPeripheralV2Controller(hid_device* dev_handle, const char* path, std::string name, uint16_t pid); - ~CorsairPeripheralV2Controller(); + virtual ~CorsairPeripheralV2Controller(); std::string GetDeviceLocation(); std::string GetFirmwareString(); diff --git a/Controllers/CorsairPeripheralV2Controller/CorsairPeripheralV2Devices.cpp b/Controllers/CorsairPeripheralV2Controller/CorsairPeripheralV2Devices.cpp index 4be5c0ef2..36e4d6ff3 100644 --- a/Controllers/CorsairPeripheralV2Controller/CorsairPeripheralV2Devices.cpp +++ b/Controllers/CorsairPeripheralV2Controller/CorsairPeripheralV2Devices.cpp @@ -103,5 +103,5 @@ const corsair_v2_device* corsair_v2_device_list_data[] = &mm700_device, }; -const unsigned int CORSAIR_V2_DEVICE_COUNT = (sizeof(corsair_v2_device_list) / sizeof(corsair_v2_device_list[ 0 ])); +const unsigned int CORSAIR_V2_DEVICE_COUNT = (sizeof(corsair_v2_device_list_data) / sizeof(corsair_v2_device_list_data[ 0 ])); const corsair_v2_device** corsair_v2_device_list = corsair_v2_device_list_data; \ No newline at end of file