diff --git a/reactos/lib/hid/hid.c b/reactos/lib/hid/hid.c index e9bee0a68cb..f9e949568e1 100644 --- a/reactos/lib/hid/hid.c +++ b/reactos/lib/hid/hid.c @@ -369,14 +369,13 @@ HidD_Hello(OUT PCHAR Buffer, IN ULONG BufferLength) { const CHAR HelloString[] = "Hello\n"; - ULONG StrSize = sizeof(HelloString) + sizeof(HelloString[0]); if(BufferLength > 0) { - memcpy(Buffer, HelloString, min(StrSize, BufferLength)); + memcpy(Buffer, HelloString, min(sizeof(HelloString), BufferLength)); } - return StrSize; + return sizeof(HelloString); }