[wininet/ftp.c 3/9] Remove unneeded (double) checks

Paul Vriens paul.vriens.wine at gmail.com
Wed Feb 7 06:29:59 CST 2007


Hi,

There is no need for this check in FTP_FtpFindFirstFileW as it's already
done in FtpFindFirstFileW.

Changelog
        Remove unneeded (double) checks

Cheers,

Paul



-------------- next part --------------
diff --git a/dlls/wininet/ftp.c b/dlls/wininet/ftp.c
index 7a4c57a..775bb88 100644
--- a/dlls/wininet/ftp.c
+++ b/dlls/wininet/ftp.c
@@ -701,8 +701,6 @@ HINTERNET WINAPI FTP_FtpFindFirstFileW(LPWININETFTPSESSIONW lpwfs,
 
     TRACE("\n");
 
-    assert(WH_HFTPSESSION == lpwfs->hdr.htype);
-
     /* Clear any error information */
     INTERNET_SetLastError(0);
 
-- 
1.4.4.4







More information about the wine-patches mailing list