Lines Matching refs:reg_data
117 char **reg_data, // list of JSON files
118 PDWORD total_size, // size of reg_data
121 LPSTR json_path, // JSON string to add to the list reg_data
125 if (*reg_data && strstr(*reg_data, json_path)) {
130 if (NULL == *reg_data) {
131 *reg_data = loader_instance_heap_alloc(inst, *total_size, VK_SYSTEM_ALLOCATION_SCOPE_INSTANCE);
132 if (NULL == *reg_data) {
138 *reg_data[0] = '\0';
139 } else if (strlen(*reg_data) + json_size + 1 > *total_size) {
141 loader_instance_heap_realloc(inst, *reg_data, *total_size, *total_size * 2, VK_SYSTEM_ALLOCATION_SCOPE_INSTANCE);
149 *reg_data = new_ptr;
154 if (strlen(*reg_data) == 0) {
155 (void)snprintf(*reg_data, json_size + 1, "%s", curr_filename);
157 (void)snprintf(*reg_data + strlen(*reg_data), json_size + 2, "%c%s", PATH_SEPARATOR, curr_filename);
169 bool windows_get_device_registry_entry(const struct loader_instance *inst, char **reg_data, PDWORD total_size, DEVINST dev_id,
176 assert(reg_data != NULL && "windows_get_device_registry_entry: reg_data is a NULL pointer");
225 found = windows_add_json_entry(inst, reg_data, total_size, value_name, data_type, manifest_path, requiredSize, result);
233 VkResult windows_get_device_registry_files(const struct loader_instance *inst, uint32_t log_target_flag, char **reg_data,
255 assert(reg_data != NULL && "windows_get_device_registry_files: reg_data is NULL");
297 if (windows_get_device_registry_entry(inst, reg_data, reg_data_size, devID, value_name, &result)) {
333 if (windows_get_device_registry_entry(inst, reg_data, reg_data_size, childID, value_name, &result)) {
352 VkResult windows_get_registry_files(const struct loader_instance *inst, char *location, bool use_secondary_hive, char **reg_data,
412 assert(reg_data != NULL && "windows_get_registry_files: reg_data is a NULL pointer");
434 if (NULL == *reg_data) {
435 *reg_data = loader_instance_heap_alloc(inst, *reg_data_size, VK_SYSTEM_ALLOCATION_SCOPE_INSTANCE);
436 if (NULL == *reg_data) {
443 *reg_data[0] = '\0';
444 } else if (strlen(*reg_data) + name_size + 1 > *reg_data_size) {
445 void *new_ptr = loader_instance_heap_realloc(inst, *reg_data, *reg_data_size, *reg_data_size * 2,
456 *reg_data = new_ptr;
514 if (strlen(*reg_data) == 0) {
516 (void)snprintf(*reg_data, name_size + 1, "%s", name);
519 // At this point the reg_data variable contains other JSON paths, likely from the PNP/device section
528 char *foundMatch = strstr(*reg_data, pLastSlashName + 1);
536 (void)snprintf(*reg_data + strlen(*reg_data), name_size + 2, "%c%s", PATH_SEPARATOR, name);
575 VkResult windows_read_manifest_from_d3d_adapters(const struct loader_instance *inst, char **reg_data, PDWORD reg_data_size,
685 windows_add_json_entry(inst, reg_data, reg_data_size, (LPCTSTR)L"EnumAdapters", REG_SZ, json_path,