windows: Whitespace fix

Closes #1111
This commit is contained in:
Shawn Hoffman
2022-04-05 03:22:35 -07:00
committed by Tormod Volden
parent aa633daaac
commit 273f808101
2 changed files with 2 additions and 2 deletions

View File

@@ -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 *));

View File

@@ -1 +1 @@
#define LIBUSB_NANO 11736
#define LIBUSB_NANO 11737