[wininet/ftp.c 4/9] Remove unneeded (double) checks
Paul Vriens
paul.vriens.wine at gmail.com
Wed Feb 7 06:30:10 CST 2007
Hi,
There is no need for these checks in FTP_FtpGetCurrentDirectoryW as it's already
done in FtpGetCurrentDirectoryW.
Also fixed a docu-typo.
Changelog
Remove unneeded (double) checks
Cheers,
Paul
-------------- next part --------------
diff --git a/dlls/wininet/ftp.c b/dlls/wininet/ftp.c
index 775bb88..0ab18c4 100644
--- a/dlls/wininet/ftp.c
+++ b/dlls/wininet/ftp.c
@@ -871,7 +871,7 @@ lend:
/***********************************************************************
- * FTP_FtpGetCurrentDirectoryA (Internal)
+ * FTP_FtpGetCurrentDirectoryW (Internal)
*
* Retrieves the current directory
*
@@ -889,12 +889,6 @@ BOOL WINAPI FTP_FtpGetCurrentDirectoryW(LPWININETFTPSESSIONW lpwfs, LPWSTR lpszC
TRACE("len(%d)\n", *lpdwCurrentDirectory);
- 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