Commit ff828161 authored by Markus Amsler's avatar Markus Amsler Committed by Alexandre Julliard

Make FINDFIRST working with /.

parent c966c56f
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment