mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-05-18 11:35:21 -04:00
handle hid get error and avoid buffer overflow error
This commit is contained in:
@@ -46,5 +46,5 @@ private:
|
||||
void SendDataTraditional(const unsigned char *data, unsigned int length);
|
||||
void SendDataModern(const unsigned char *data, unsigned int length);
|
||||
|
||||
int ReceiveData(unsigned char *data);
|
||||
int ReceiveData(unsigned char *data, unsigned int max_length);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user