wininet/ftp: Remove unneeded (double) checks.
This commit is contained in:
parent
7c7271d465
commit
7a1ef2c1ef
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue