From 81908f7960005e35a50d0675e970483989cd7ff2 Mon Sep 17 00:00:00 2001 From: hristo Date: Wed, 3 Mar 2021 16:41:15 +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. (#1629) --- 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;