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
378dec15
Commit
378dec15
authored
Jun 01, 2004
by
Lionel Ulmer
Committed by
Alexandre Julliard
Jun 01, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix the case where lpszSearchFile is NULL in FtpFindFirstFile.
parent
773784ea
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
ftp.c
dlls/wininet/ftp.c
+4
-3
internet.c
dlls/wininet/internet.c
+2
-1
No files found.
dlls/wininet/ftp.c
View file @
378dec15
...
...
@@ -606,7 +606,7 @@ HINTERNET WINAPI FtpFindFirstFileW(HINTERNET hConnect,
workRequest
.
asyncall
=
FTPFINDFIRSTFILEW
;
workRequest
.
handle
=
hConnect
;
req
=
&
workRequest
.
u
.
FtpFindFirstFileW
;
req
->
lpszSearchFile
=
WININET_strdupW
(
lpszSearchFile
);
req
->
lpszSearchFile
=
(
lpszSearchFile
==
NULL
)
?
NULL
:
WININET_strdupW
(
lpszSearchFile
);
req
->
lpFindFileData
=
lpFindFileData
;
req
->
dwFlags
=
dwFlags
;
req
->
dwContext
=
dwContext
;
...
...
@@ -2659,7 +2659,7 @@ HINTERNET FTP_ReceiveFileList(LPWININETFTPSESSIONW lpwfs, INT nSocket, LPCWSTR l
LPWININETFINDNEXTW
lpwfn
=
NULL
;
HINTERNET
handle
=
0
;
TRACE
(
"(%p,%d,%
p,%ld)
\n
"
,
lpwfs
,
nSocket
,
lpFindFileData
,
dwContext
);
TRACE
(
"(%p,%d,%
s,%p,%ld)
\n
"
,
lpwfs
,
nSocket
,
debugstr_w
(
lpszSearchFile
)
,
lpFindFileData
,
dwContext
);
if
(
FTP_ParseDirectory
(
lpwfs
,
nSocket
,
lpszSearchFile
,
&
lpafp
,
&
dwSize
))
{
...
...
@@ -2878,7 +2878,8 @@ BOOL FTP_ParseNextFile(INT nSocket, LPCWSTR lpszSearchFile, LPFILEPROPERTIESW lp
}
if
(
lpfp
->
lpszName
)
{
if
(
PathMatchSpecW
(
lpfp
->
lpszName
,
lpszSearchFile
))
{
if
((
lpszSearchFile
==
NULL
)
||
(
PathMatchSpecW
(
lpfp
->
lpszName
,
lpszSearchFile
)))
{
found
=
TRUE
;
TRACE
(
"Matched: %s
\n
"
,
debugstr_w
(
lpfp
->
lpszName
));
}
...
...
dlls/wininet/internet.c
View file @
378dec15
...
...
@@ -2556,7 +2556,8 @@ VOID INTERNET_ExecuteWork()
req
=
&
workRequest
.
u
.
FtpFindFirstFileW
;
FTP_FtpFindFirstFileW
(
workRequest
.
handle
,
req
->
lpszSearchFile
,
req
->
lpFindFileData
,
req
->
dwFlags
,
req
->
dwContext
);
HeapFree
(
GetProcessHeap
(),
0
,
req
->
lpszSearchFile
);
if
(
req
->
lpszSearchFile
!=
NULL
)
HeapFree
(
GetProcessHeap
(),
0
,
req
->
lpszSearchFile
);
}
break
;
...
...
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