wininet: Return NULL handle if no connection is established.
This commit is contained in:
parent
0472e9cd49
commit
7687e0477c
|
@ -1577,7 +1577,7 @@ lend:
|
||||||
}
|
}
|
||||||
|
|
||||||
/***********************************************************************
|
/***********************************************************************
|
||||||
* FTP_FtpRenameFileA (Internal)
|
* FTP_FtpRenameFileW (Internal)
|
||||||
*
|
*
|
||||||
* Rename a file on the ftp server
|
* Rename a file on the ftp server
|
||||||
*
|
*
|
||||||
|
@ -1806,6 +1806,7 @@ lerror:
|
||||||
{
|
{
|
||||||
HeapFree(GetProcessHeap(), 0, lpwfs);
|
HeapFree(GetProcessHeap(), 0, lpwfs);
|
||||||
WININET_FreeHandle( handle );
|
WININET_FreeHandle( handle );
|
||||||
|
handle = NULL;
|
||||||
lpwfs = NULL;
|
lpwfs = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue