wininet/ftp: Move a definition in FTP_FtpFindFirstFileW (Coverity).
This commit is contained in:
parent
9a7fb5f1e7
commit
b6f92f10c6
|
@ -737,7 +737,6 @@ HINTERNET WINAPI FTP_FtpFindFirstFileW(LPWININETFTPSESSIONW lpwfs,
|
||||||
if (!FTP_SendPortOrPasv(lpwfs))
|
if (!FTP_SendPortOrPasv(lpwfs))
|
||||||
goto lend;
|
goto lend;
|
||||||
|
|
||||||
hIC = lpwfs->lpAppInfo;
|
|
||||||
if (!FTP_SendCommand(lpwfs->sndSocket, FTP_CMD_LIST, NULL,
|
if (!FTP_SendCommand(lpwfs->sndSocket, FTP_CMD_LIST, NULL,
|
||||||
lpwfs->hdr.lpfnStatusCB, &lpwfs->hdr, lpwfs->hdr.dwContext))
|
lpwfs->hdr.lpfnStatusCB, &lpwfs->hdr, lpwfs->hdr.dwContext))
|
||||||
goto lend;
|
goto lend;
|
||||||
|
@ -767,6 +766,7 @@ lend:
|
||||||
if (lpwfs->lstnSocket != -1)
|
if (lpwfs->lstnSocket != -1)
|
||||||
closesocket(lpwfs->lstnSocket);
|
closesocket(lpwfs->lstnSocket);
|
||||||
|
|
||||||
|
hIC = lpwfs->lpAppInfo;
|
||||||
if (hIC->hdr.dwFlags & INTERNET_FLAG_ASYNC)
|
if (hIC->hdr.dwFlags & INTERNET_FLAG_ASYNC)
|
||||||
{
|
{
|
||||||
INTERNET_ASYNC_RESULT iar;
|
INTERNET_ASYNC_RESULT iar;
|
||||||
|
|
Loading…
Reference in New Issue