diff --git a/src/serialport_win.cpp b/src/serialport_win.cpp index a98fdd7fd8..0952d53817 100644 --- a/src/serialport_win.cpp +++ b/src/serialport_win.cpp @@ -661,7 +661,7 @@ void getSerialNumber(const char *vid, &deviceInfoData, &DEVPKEY_Device_ContainerId, &ulPropertyType, - reinterpret_castszWUuidBuffer, + reinterpret_cast(szWUuidBuffer), sizeof(szWUuidBuffer), &dwSize, 0)) {