diff --git a/windows/hid.c b/windows/hid.c index 0b26bf9..a8cff54 100755 --- a/windows/hid.c +++ b/windows/hid.c @@ -162,7 +162,7 @@ static void register_error(hid_device *device, const char *op) NULL, GetLastError(), MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), - (LPWSTR)&msg, 0/*sz*/, + (LPVOID)&msg, 0/*sz*/, NULL); /* Get rid of the CR and LF that FormatMessage() sticks at the