[wininet][2] Return NULL handle if no connection is established

Paul Vriens Paul.Vriens at xs4all.nl
Tue Jul 4 13:06:58 CDT 2006


Hi,

we should return NULL if no ftp connection is establised.

I have some tests in the making that will be sent once Wine stops
crashing on them.

Changelog
  Return NULL handle if no connection is established

Cheers,

Paul.
---
 dlls/wininet/ftp.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/dlls/wininet/ftp.c b/dlls/wininet/ftp.c
index 3c1ce54..5873ee8 100644
--- a/dlls/wininet/ftp.c
+++ b/dlls/wininet/ftp.c
@@ -1801,6 +1801,7 @@ lerror:
     {
         HeapFree(GetProcessHeap(), 0, lpwfs);
         WININET_FreeHandle( handle );
+        handle = NULL;
         lpwfs = NULL;
     }
 
-- 
1.4.1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.winehq.org/pipermail/wine-patches/attachments/20060704/5fb2ff4a/attachment.htm


More information about the wine-patches mailing list