[wininet/ftp.c 2/9] Remove unneeded (double) checks
Paul Vriens
paul.vriens.wine at gmail.com
Wed Feb 7 06:29:51 CST 2007
Hi,
There is no need for these checks in FTP_FtpCreateDirectoryW as it's already
done in FtpCreateDirectoryW.
Changelog
Remove unneeded (double) checks
Cheers,
Paul
-------------- next part --------------
diff --git a/dlls/wininet/ftp.c b/dlls/wininet/ftp.c
index 2f84838..7a4c57a 100644
--- a/dlls/wininet/ftp.c
+++ b/dlls/wininet/ftp.c
@@ -556,12 +556,6 @@ BOOL WINAPI FTP_FtpCreateDirectoryW(LPWININETFTPSESSIONW lpwfs, LPCWSTR lpszDire
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