summaryrefslogtreecommitdiff
path: root/libusb/os/windows_winusb.c
diff options
context:
space:
mode:
authorShawn Hoffman <godisgovernment@gmail.com>2022-04-05 03:22:35 -0700
committerTormod Volden <debian.tormod@gmail.com>2022-06-26 17:09:14 +0200
commit273f808101a1e7864a78b1f11fcc3e6b34bbf11a (patch)
tree3c857f50b8b75143546614615abc9ccb30f4ec76 /libusb/os/windows_winusb.c
parentaa633daaac2986f5361ba86ad7e0a3315156455e (diff)
downloadlibusb-273f808101a1e7864a78b1f11fcc3e6b34bbf11a.tar.gz
windows: Whitespace fix
Closes #1111
Diffstat (limited to 'libusb/os/windows_winusb.c')
-rw-r--r--libusb/os/windows_winusb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libusb/os/windows_winusb.c b/libusb/os/windows_winusb.c
index 1e9e89a..1dd7af7 100644
--- a/libusb/os/windows_winusb.c
+++ b/libusb/os/windows_winusb.c
@@ -1636,7 +1636,7 @@ static int winusb_get_device_list(struct libusb_context *ctx, struct discovered_
// https://docs.microsoft.com/en-us/windows/win32/api/winreg/nf-winreg-regqueryvalueexa#remarks
// - "string may not have been stored with the proper terminating null characters"
// - "Note that REG_MULTI_SZ strings could have two terminating null characters"
- if ((reg_type == REG_SZ && size >= sizeof(guid_string) - sizeof(char))
+ if ((reg_type == REG_SZ && size >= sizeof(guid_string) - sizeof(char))
|| (reg_type == REG_MULTI_SZ && size >= sizeof(guid_string) - 2 * sizeof(char))) {
if (nb_guids == guid_size) {
new_guid_list = realloc((void *)guid_list, (guid_size + GUID_SIZE_STEP) * sizeof(void *));