Skip to content

Commit

Permalink
windows: Fix undeclared variable name in register_error()
Browse files Browse the repository at this point in the history
Signed-off-by: Kubicz, Filip <[email protected]>
  • Loading branch information
Qbicz committed Jun 18, 2019
1 parent 35c5b2e commit c4f86a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions windows/hid.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c4f86a7

Please sign in to comment.