[wininet/ftp.c] Remove unneeded check
Paul Vriens
paul.vriens.wine at gmail.com
Wed Feb 7 02:07:45 CST 2007
Hi,
First some cleanup patches before the fixes.
There is no need for this check in FTP_FtpPutFileW as it's already done in
FtpPutFileW (AsyncFtpPutFileProc is a caller as well but is defined in
FtpPutFileW, after the checks).
If this one is accepted I'll send some more removals of unneeded (double) checks.
Changelog
Remove unneeded check
Cheers,
Paul
-------------- next part --------------
diff --git a/dlls/wininet/ftp.c b/dlls/wininet/ftp.c
index 841ae3c..b26350f 100644
--- a/dlls/wininet/ftp.c
+++ b/dlls/wininet/ftp.c
@@ -262,8 +262,6 @@ BOOL WINAPI FTP_FtpPutFileW(LPWININETFTPSESSIONW lpwfs, LPCWSTR lpszLocalFile,
return FALSE;
}
- assert( WH_HFTPSESSION == lpwfs->hdr.htype);
-
/* Clear any error information */
INTERNET_SetLastError(0);
hIC = lpwfs->lpAppInfo;
--
1.4.4.4
More information about the wine-patches
mailing list