From ff828161fdc96d021a70f6bc27efdb70763e671b Mon Sep 17 00:00:00 2001 From: Markus Amsler Date: Fri, 13 Aug 2004 00:39:58 +0000 Subject: [PATCH] Make FINDFIRST working with /. --- dlls/winedos/int21.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dlls/winedos/int21.c b/dlls/winedos/int21.c index 052cbb13df8..345d3b081b1 100644 --- a/dlls/winedos/int21.c +++ b/dlls/winedos/int21.c @@ -3690,7 +3690,7 @@ static const WCHAR *INT21_FindPath; /* will point to current dta->fullPath searc */ static int INT21_FindFirst( CONTEXT86 *context ) { - WCHAR *p; + WCHAR *p, *q; const char *path; FINDFILE_DTA *dta = (FINDFILE_DTA *)INT21_GetCurrentDTA(context); WCHAR maskW[12], pathW[MAX_PATH]; @@ -3700,6 +3700,8 @@ static int INT21_FindFirst( CONTEXT86 *context ) MultiByteToWideChar(CP_OEMCP, 0, path, -1, pathW, MAX_PATH); p = strrchrW( pathW, '\\'); + q = strrchrW( pathW, '/'); + if (q>p) p = q; if (!p) { if (pathW[0] && pathW[1] == ':') p = pathW + 2; -- 2.11.4.GIT