handle hid get error and avoid buffer overflow error

This commit is contained in:
denk_mal
2021-02-18 16:43:37 +01:00
parent e69b59d339
commit 3a270cbea7
2 changed files with 35 additions and 29 deletions

View File

@@ -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);
};