wininet/ftp: Remove unneeded (double) checks.
This commit is contained in:
parent
0e8ad3019a
commit
2831cf5d3e
@ -556,12 +556,6 @@ BOOL WINAPI FTP_FtpCreateDirectoryW(LPWININETFTPSESSIONW lpwfs, LPCWSTR lpszDire
|
|||||||
|
|
||||||
TRACE("lpszDirectory(%s)\n", debugstr_w(lpszDirectory));
|
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 */
|
/* Clear any error information */
|
||||||
INTERNET_SetLastError(0);
|
INTERNET_SetLastError(0);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user