Skip to content

Commit 9828cad

Browse files
Windows: fix strict typecast (#206)
1 parent 8caf8c8 commit 9828cad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

windows/hid.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ static void register_error(hid_device *dev, const char *op)
192192
NULL,
193193
GetLastError(),
194194
MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT),
195-
(LPVOID)&msg, 0/*sz*/,
195+
(LPWSTR)&msg, 0/*sz*/,
196196
NULL);
197197

198198
/* Get rid of the CR and LF that FormatMessage() sticks at the

0 commit comments

Comments
 (0)