From c4f86a7d85c0c5ae1cdf6cdecb515960361a2c77 Mon Sep 17 00:00:00 2001 From: "Kubicz, Filip" Date: Tue, 18 Jun 2019 12:45:23 +0200 Subject: [PATCH] windows: Fix undeclared variable name in register_error() Signed-off-by: Kubicz, Filip --- windows/hid.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/windows/hid.c b/windows/hid.c index 67cb857ae..4a71e2552 100755 --- a/windows/hid.c +++ b/windows/hid.c @@ -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