Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/KhronosGroup/Vulkan-Loader.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'loader/loader_windows.c')
-rw-r--r--loader/loader_windows.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/loader/loader_windows.c b/loader/loader_windows.c
index 4015acbb8..068e21147 100644
--- a/loader/loader_windows.c
+++ b/loader/loader_windows.c
@@ -525,8 +525,8 @@ VkResult windows_get_registry_files(const struct loader_instance *inst, char *lo
foundDuplicate = true;
}
}
-
- if (foundDuplicate == false) {
+ // Only skip if we are adding a driver and a duplicate was found
+ if (!is_driver || (is_driver && foundDuplicate == false)) {
// Add the new entry to the list.
(void)snprintf(*reg_data + strlen(*reg_data), name_size + 2, "%c%s", PATH_SEPARATOR, name);
found = true;