loader: Fix parsing VK_INSTANCE_LAYERS
authorziga-lunarg <ziga@lunarg.com>
Fri, 2 Dec 2022 15:08:11 +0000 (16:08 +0100)
committerCharles Giessen <46324611+charles-lunarg@users.noreply.github.com>
Fri, 2 Dec 2022 18:10:15 +0000 (12:10 -0600)
loader/loader_environment.c

index d4f7e04696296440ec54372dbab30fb1b115203f..f4205f40f6afd02ac418c3da198350a96c0ce337 100644 (file)
@@ -435,7 +435,7 @@ VkResult loader_add_environment_layers(struct loader_instance *inst, const enum
         if (name != NULL) {
             separator_count = 1;
             for (uint32_t c = 0; c < strlen(layer_env); ++c) {
-                if (c == PATH_SEPARATOR) {
+                if (layer_env[c] == PATH_SEPARATOR) {
                     separator_count++;
                 }
             }