diff --git a/loader/loader.c b/loader/loader.c index 1d2ea4ab0..6e4f0d94b 100644 --- a/loader/loader.c +++ b/loader/loader.c @@ -633,6 +633,12 @@ VkResult fixup_library_binary_path(const struct loader_instance *inst, char **li } if (NULL != os_determined_lib_name) { + // Normalize the path so that the comparison doesn't yield false positives + res = normalize_path(inst, &os_determined_lib_name); + if (res == VK_ERROR_OUT_OF_HOST_MEMORY) { + return res; + } + if (0 != strcmp(os_determined_lib_name, *lib_name)) { // Paths do not match, so we need to replace lib_name with the real path if (!system_path) {