We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 35c5b2e commit c4f86a7Copy full SHA for c4f86a7
windows/hid.c
@@ -195,8 +195,8 @@ static void register_error(hid_device *dev, const char *op)
195
196
/* Store the message off in the Device entry so that
197
the hid_error() function can pick it up. */
198
- LocalFree(device->last_error_str);
199
- device->last_error_str = msg;
+ LocalFree(dev->last_error_str);
+ dev->last_error_str = msg;
200
}
201
202
#ifndef HIDAPI_USE_DDK
0 commit comments