Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
b222001d
Commit
b222001d
authored
Mar 06, 2006
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: Fixed handling of null-terminated file list in SHFileOperation.
parent
c29b7c35
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
19 deletions
+9
-19
shlfileop.c
dlls/shell32/shlfileop.c
+9
-19
No files found.
dlls/shell32/shlfileop.c
View file @
b222001d
...
...
@@ -791,29 +791,19 @@ static DWORD count_wildcard_files(LPCWSTR szWildFile)
static
DWORD
count_files
(
LPCWSTR
szFileList
)
{
DWORD
dwCount
=
0
;
LPCWSTR
p
=
szFileList
;
LPCWSTR
q
=
p
+
1
;
LPCWSTR
str
=
p
;
LPCWSTR
str
=
szFileList
;
/* test empty list */
if
(
!
szFileList
[
0
]
&&
!
szFileList
[
1
])
return
-
1
;
/* p,q search: stop when we reach double null terminator */
while
(
*
p
||
*
q
)
{
if
(
!*
q
)
{
if
(
StrPBrkW
(
str
,
wWildcardChars
))
dwCount
+=
count_wildcard_files
(
str
);
else
dwCount
++
;
if
(
!
szFileList
[
0
])
return
-
1
;
str
=
q
+
1
;
}
while
(
*
str
)
{
if
(
StrPBrkW
(
str
,
wWildcardChars
))
dwCount
+=
count_wildcard_files
(
str
);
else
dwCount
++
;
p
++
;
q
++
;
str
+=
lstrlenW
(
str
)
+
1
;
}
return
dwCount
;
...
...
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