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

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


Hi,

There is no need for these checks in FTP_FtpSetCurrentDirectoryW as it's already
done in FtpSetCurrentDirectoryW.

Changelog
        Remove unneeded (double) checks

Cheers,

Paul



-------------- next part --------------
diff --git a/dlls/wininet/ftp.c b/dlls/wininet/ftp.c
index b26350f..2f84838 100644
--- a/dlls/wininet/ftp.c
+++ b/dlls/wininet/ftp.c
@@ -425,12 +425,6 @@ BOOL WINAPI FTP_FtpSetCurrentDirectoryW(LPWININETFTPSESSIONW lpwfs, LPCWSTR lpsz
 
     TRACE("lpszDirectory(%s)\n", debugstr_w(lpszDirectory));
 
-    if (NULL == lpwfs || WH_HFTPSESSION != lpwfs->hdr.htype)
-    {
-        INTERNET_SetLastError(ERROR_INTERNET_INCORRECT_HANDLE_TYPE);
-        return FALSE;
-    }
-
     /* Clear any error information */
     INTERNET_SetLastError(0);
 
-- 
1.4.4.4









More information about the wine-patches mailing list