Skip to content

Commit

Permalink
Fix "Explicit null dereferenced" (#561)
Browse files Browse the repository at this point in the history
Fixes: #549
  • Loading branch information
Youw authored May 22, 2023
1 parent b595f3b commit 1798ada
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion windows/hid.c
Original file line number Diff line number Diff line change
Expand Up @@ -936,7 +936,7 @@ HID_API_EXPORT hid_device * HID_API_CALL hid_open_path(const char *path)

interface_path = hid_internal_UTF8toUTF16(path);
if (!interface_path) {
register_string_error(dev, L"Path conversion failure");
register_global_error(L"Path conversion failure");
goto end_of_function;
}

Expand Down

0 comments on commit 1798ada

Please sign in to comment.