From 1798adabb26aa687586ea9fc20f2d29fcbd8c453 Mon Sep 17 00:00:00 2001 From: Ihor Dutchak Date: Mon, 22 May 2023 13:08:19 +0300 Subject: [PATCH] Fix "Explicit null dereferenced" (#561) Fixes: #549 --- windows/hid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/windows/hid.c b/windows/hid.c index d51858338..699969146 100644 --- a/windows/hid.c +++ b/windows/hid.c @@ -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; }