Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
4610c0a9
Commit
4610c0a9
authored
Sep 27, 2002
by
György 'Nog' Jeney
Committed by
Alexandre Julliard
Sep 27, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Check for an empty string in DOSFS_FindNextEx to avoid an unnecessary
failure.
parent
e65eb614
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletion
+12
-1
dos_fs.c
files/dos_fs.c
+12
-1
No files found.
files/dos_fs.c
View file @
4610c0a9
...
...
@@ -197,6 +197,8 @@ BOOL DOSFS_ToDosFCBFormat( LPCWSTR name, LPWSTR buffer )
LPCWSTR
p
=
name
;
int
i
;
TRACE
(
"(%s, %p)
\n
"
,
debugstr_w
(
name
),
buffer
);
/* Check for "." and ".." */
if
(
*
p
==
'.'
)
{
...
...
@@ -342,6 +344,8 @@ static int DOSFS_MatchLong( LPCWSTR mask, LPCWSTR name, int case_sensitive )
LPCWSTR
next_to_retry
=
NULL
;
static
const
WCHAR
asterisk_dot_asterisk
[]
=
{
'*'
,
'.'
,
'*'
,
0
};
TRACE
(
"(%s, %s, %x)
\n
"
,
debugstr_w
(
mask
),
debugstr_w
(
name
),
case_sensitive
);
if
(
!
strcmpW
(
mask
,
asterisk_dot_asterisk
))
return
1
;
while
(
*
name
&&
*
mask
)
{
...
...
@@ -605,6 +609,9 @@ static BOOL DOSFS_ReadDir( DOS_DIR *dir, LPCWSTR *long_name,
*
short_name
=
NULL
;
dir
->
used
+=
(
strlenW
(
sn
)
+
1
)
*
sizeof
(
WCHAR
);
TRACE
(
"Read: long_name: %s, short_name: %s
\n
"
,
debugstr_w
(
*
long_name
),
debugstr_w
(
*
short_name
));
return
TRUE
;
}
...
...
@@ -1736,7 +1743,7 @@ static int DOSFS_FindNextEx( FIND_FIRST_INFO *info, WIN32_FIND_DATAW *entry )
/* Check the long mask */
if
(
info
->
long_mask
)
if
(
info
->
long_mask
&&
*
info
->
long_mask
)
{
if
(
!
DOSFS_MatchLong
(
info
->
long_mask
,
long_name
,
flags
&
DRIVE_CASE_SENSITIVE
))
continue
;
...
...
@@ -1824,6 +1831,10 @@ int DOSFS_FindNext( const char *path, const char *short_mask,
UNICODE_STRING
short_maskW
,
long_maskW
;
WIN32_FIND_DATAW
entryW
;
TRACE
(
"(%s, %s, %s, %x, %x, %x, %p)
\n
"
,
debugstr_a
(
path
),
debugstr_a
(
short_mask
),
debugstr_a
(
long_mask
),
drive
,
attr
,
skip
,
entry
);
_EnterWin16Lock
();
RtlCreateUnicodeStringFromAsciiz
(
&
short_maskW
,
short_mask
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment