Commit 0e8ad301 authored by Paul Vriens's avatar Paul Vriens Committed by Alexandre Julliard

wininet/ftp: Remove unneeded (double) checks.

parent b6bf3d9c
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment