mirror of
https://github.com/shadps4-emu/ext-libusb.git
synced 2026-01-31 00:55:21 +01:00
committed by
Tormod Volden
parent
aa633daaac
commit
273f808101
@@ -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 *));
|
||||
|
||||
@@ -1 +1 @@
|
||||
#define LIBUSB_NANO 11736
|
||||
#define LIBUSB_NANO 11737
|
||||
|
||||
Reference in New Issue
Block a user