Don't strip the library extension if it's not ".dll".

This commit is contained in:
Alexandre Julliard 2000-11-09 20:28:44 +00:00
parent 4354cda76d
commit 3e38431ef5
1 changed files with 1 additions and 2 deletions

View File

@ -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