From 19f9408990d6e62af422e9648ac74132c8f3fcd5 Mon Sep 17 00:00:00 2001 From: Adam Honse Date: Mon, 13 Apr 2026 11:34:28 -0500 Subject: [PATCH] Fix remaining warning --- .../MSIMysticLight185Controller/MSIMysticLight185Controller.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Controllers/MSIMysticLightController/MSIMysticLight185Controller/MSIMysticLight185Controller.cpp b/Controllers/MSIMysticLightController/MSIMysticLight185Controller/MSIMysticLight185Controller.cpp index e0230e91..74c986c2 100644 --- a/Controllers/MSIMysticLightController/MSIMysticLight185Controller/MSIMysticLight185Controller.cpp +++ b/Controllers/MSIMysticLightController/MSIMysticLight185Controller/MSIMysticLight185Controller.cpp @@ -723,14 +723,14 @@ bool MSIMysticLight185Controller::Update | send old state first, then new state. | | Windows Mystic Light sends two consecutive reports. | \*-----------------------------------------------------*/ - FeaturePacket_185 new_data; - memcpy(&new_data, &data, sizeof(data)); + FeaturePacket_185 new_data = data; + memcpy((unsigned char*)&new_data, (unsigned char*)&data, sizeof(data)); ReadSettings(); data.save_data = save; hid_send_feature_report(dev, (unsigned char*)&data, sizeof(data)); - memcpy(&data, &new_data, sizeof(data)); + memcpy((unsigned char*)&data, (unsigned char*)&new_data, sizeof(data)); data.save_data = save; return (hid_send_feature_report(dev, (unsigned char*)&data, sizeof(data)) == sizeof(data)); }