Commit 35f0965c authored by Mike McCormack's avatar Mike McCormack Committed by Alexandre Julliard

wininet: Check for null parameters in FtpSetCurrentDirectoryW.

parent 5fb6e0ef
......@@ -339,10 +339,16 @@ BOOL WINAPI FtpSetCurrentDirectoryA(HINTERNET hConnect, LPCSTR lpszDirectory)
*/
BOOL WINAPI FtpSetCurrentDirectoryW(HINTERNET hConnect, LPCWSTR lpszDirectory)
{
LPWININETFTPSESSIONW lpwfs;
LPWININETFTPSESSIONW lpwfs = NULL;
LPWININETAPPINFOW hIC = NULL;
BOOL r = FALSE;
if (!lpszDirectory)
{
SetLastError(ERROR_INVALID_PARAMETER);
goto lend;
}
lpwfs = (LPWININETFTPSESSIONW) WININET_GetObject( hConnect );
if (NULL == lpwfs || WH_HFTPSESSION != lpwfs->hdr.htype)
{
......
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