wininet: Return NULL handle if no connection is established.

This commit is contained in:
Paul Vriens 2006-07-04 20:06:58 +02:00 committed by Alexandre Julliard
parent 0472e9cd49
commit 7687e0477c
1 changed files with 2 additions and 1 deletions

View File

@ -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;
} }