From 3e38431ef5e7ee136c8b2214f4ad5c4e26646dfb Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Thu, 9 Nov 2000 20:28:44 +0000 Subject: [PATCH] Don't strip the library extension if it's not ".dll". --- loader/elfdll.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/loader/elfdll.c b/loader/elfdll.c index 7100971cb04..faacd9d90b7 100644 --- a/loader/elfdll.c +++ b/loader/elfdll.c @@ -134,8 +134,7 @@ static LPSTR get_sobasename(LPCSTR path, LPSTR name) strcpy(name, cptr); cptr = strrchr(name, '.'); - if(cptr) - *cptr = '\0'; /* Strip extension */ + if(cptr && !strcasecmp(cptr,".dll")) *cptr = '\0'; /* Strip extension */ /* Convert to lower case. * This must be done manually because it is not sure that