From 17ab9e2493ed4306df914df6ef88782b63e759d4 Mon Sep 17 00:00:00 2001 From: Hristo Stamenov Date: Wed, 3 Mar 2021 16:30:57 +0200 Subject: [PATCH] Removing +1 on comparing extesnions because this way it checked the file extension without the . against the file extension with the . resulting in always false. --- src/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core.c b/src/core.c index d5f588411..d7cea0be4 100644 --- a/src/core.c +++ b/src/core.c @@ -2325,7 +2325,7 @@ bool IsFileExtension(const char *fileName, const char *ext) for (int i = 0; i < extCount; i++) { - if (TextIsEqual(fileExtLower, TextToLower(checkExts[i] + 1))) + if (TextIsEqual(fileExtLower, TextToLower(checkExts[i]))) { result = true; break;