windows: Fix undeclared variable name in register_error()

Signed-off-by: Kubicz, Filip <Filip.Kubicz@nordicsemi.no>
This commit is contained in:
Kubicz, Filip
2019-06-18 12:45:23 +02:00
committed by Filip Kubicz
parent 35c5b2e404
commit c4f86a7d85
+2 -2
View File
@@ -195,8 +195,8 @@ static void register_error(hid_device *dev, const char *op)
/* Store the message off in the Device entry so that
the hid_error() function can pick it up. */
LocalFree(device->last_error_str);
device->last_error_str = msg;
LocalFree(dev->last_error_str);
dev->last_error_str = msg;
}
#ifndef HIDAPI_USE_DDK