Skip to content

Commit 1798ada

Browse files
authored
Fix "Explicit null dereferenced" (#561)
Fixes: #549
1 parent b595f3b commit 1798ada

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

windows/hid.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -936,7 +936,7 @@ HID_API_EXPORT hid_device * HID_API_CALL hid_open_path(const char *path)
936936

937937
interface_path = hid_internal_UTF8toUTF16(path);
938938
if (!interface_path) {
939-
register_string_error(dev, L"Path conversion failure");
939+
register_global_error(L"Path conversion failure");
940940
goto end_of_function;
941941
}
942942

0 commit comments

Comments
 (0)