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
a90f695f
Commit
a90f695f
authored
Aug 30, 2023
by
Paul Gofman
Committed by
Alexandre Julliard
Sep 04, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernelbase: Get unprocessed mask in FindFirstFileExW().
parent
68fecd77
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
file.c
dlls/kernel32/tests/file.c
+2
-2
file.c
dlls/kernelbase/file.c
+2
-1
No files found.
dlls/kernel32/tests/file.c
View file @
a90f695f
...
...
@@ -3019,8 +3019,8 @@ static void test_FindFirstFile_wildcards(void)
{
1
,
"..< "
,
", '..a'"
},
{
1
,
"?"
,
", '.', '..', 'a'"
},
{
1
,
"?."
,
", '.', '..', 'a'"
},
{
1
,
"?. "
,
", '.', '..', 'a'"
},
{
0
,
"?."
,
", '.', '..', 'a'"
},
{
0
,
"?. "
,
", '.', '..', 'a'"
},
{
1
,
"??."
,
", '.', '..', 'a', 'aa'"
},
{
1
,
"??. "
,
", '.', '..', 'a', 'aa'"
},
{
1
,
"???."
,
", '.', '..', 'a', 'aa', 'aaa'"
},
...
...
dlls/kernelbase/file.c
View file @
a90f695f
...
...
@@ -1190,6 +1190,7 @@ HANDLE WINAPI DECLSPEC_HOTPATCH FindFirstFileExW( LPCWSTR filename, FINDEX_INFO_
if
(
has_wildcard
)
{
size
=
8192
;
mask
=
PathFindFileNameW
(
filename
);
mask_size
=
(
lstrlenW
(
mask
)
+
1
)
*
sizeof
(
*
mask
);
}
else
size
=
max_entry_size
;
...
...
@@ -1408,7 +1409,7 @@ static BOOL match_filename( const WCHAR *name, int length, const WCHAR *mask )
}
}
while
(
mask
<
mask_end
&&
(
*
mask
==
'.'
||
*
mask
==
'*'
))
while
(
mask
<
mask_end
&&
(
*
mask
==
'
'
||
*
mask
==
'
.'
||
*
mask
==
'*'
))
mask
++
;
return
(
name
==
name_end
&&
mask
==
mask_end
);
}
...
...
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