From 6e709a1ed036cd827df198d0d1e9117647b440d6 Mon Sep 17 00:00:00 2001 From: Ulrich Czekalla Date: Sat, 8 May 1999 12:37:34 +0000 Subject: [PATCH] Bugfix: get_sobasename was off by one pointer increment. --- loader/elfdll.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/loader/elfdll.c b/loader/elfdll.c index b6164134b10..30f510231d8 100644 --- a/loader/elfdll.c +++ b/loader/elfdll.c @@ -119,9 +119,7 @@ static LPSTR get_sobasename(LPCSTR path, LPSTR name) { char *cp = strrchr(cptr+1, '\\'); if(cp && cp > cptr) - cptr = cp+1; - else - cptr++; + cptr = cp; } else cptr = strrchr(path, '\\');