mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-10-23 08:58:58 -04:00
handle hid get error and avoid buffer overflow error
This commit is contained in:
1 parent
e69b59d339
commit
3a270cbea7
2 files changed
+35
-29
No files matched your search
@@ -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