mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-29 19:26:33 +00:00
Add *. to dir but it does not working in ros but in windows fine
some bug in ros svn path=/trunk/; revision=15085
This commit is contained in:
@@ -567,14 +567,21 @@ ExtendFilespec (LPTSTR file)
|
||||
|
||||
if (!file)
|
||||
return;
|
||||
|
||||
|
||||
/* if no file spec, change to "*.*" */
|
||||
if (*file == _T('\0'))
|
||||
{
|
||||
_tcscpy (file, _T("*.*"));
|
||||
{
|
||||
_tcscpy (file, _T("*.*"));
|
||||
return;
|
||||
}
|
||||
|
||||
// add support for *.
|
||||
if ((file[0] == _T('*')) && (file[1] == _T('.') ))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
/* if starts with . add * in front */
|
||||
if (*file == _T('.'))
|
||||
{
|
||||
@@ -585,15 +592,18 @@ ExtendFilespec (LPTSTR file)
|
||||
/* if no . add .* */
|
||||
if (!_tcschr (file, _T('.')))
|
||||
{
|
||||
_tcscat (file, _T(".*"));
|
||||
_tcscat (file, _T(".*"));
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/* if last character is '.' add '*' */
|
||||
len = _tcslen (file);
|
||||
if (file[len - 1] == _T('.'))
|
||||
{
|
||||
_tcscat (file, _T("*"));
|
||||
ConOutPrintf(L"file3 : %s\n",file);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user