Skip to content

Commit c4f86a7

Browse files
committed
windows: Fix undeclared variable name in register_error()
Signed-off-by: Kubicz, Filip <Filip.Kubicz@nordicsemi.no>
1 parent 35c5b2e commit c4f86a7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

windows/hid.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,8 +195,8 @@ static void register_error(hid_device *dev, const char *op)
195195

196196
/* Store the message off in the Device entry so that
197197
the hid_error() function can pick it up. */
198-
LocalFree(device->last_error_str);
199-
device->last_error_str = msg;
198+
LocalFree(dev->last_error_str);
199+
dev->last_error_str = msg;
200200
}
201201

202202
#ifndef HIDAPI_USE_DDK

0 commit comments

Comments
 (0)