From 479ee52fdaa2516ecc16ad130ab5d877b514894a Mon Sep 17 00:00:00 2001 From: Krzysztof Foltman Date: Mon, 6 Sep 2004 20:24:38 +0000 Subject: [PATCH] - Reversed the assertion causing InternetConnect to always fail. - FTP_ConvertFileProp: WIN32_FIND_DATA contains proper modification and creation time. --- dlls/wininet/ftp.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dlls/wininet/ftp.c b/dlls/wininet/ftp.c index 5ae04b9a111..5aaf3e6c072 100644 --- a/dlls/wininet/ftp.c +++ b/dlls/wininet/ftp.c @@ -1631,7 +1631,7 @@ HINTERNET FTP_Connect(LPWININETAPPINFOW hIC, LPCWSTR lpszServerName, hIC, debugstr_w(lpszServerName), nServerPort, debugstr_w(lpszUserName), debugstr_w(lpszPassword)); - assert( hIC->hdr.htype != WH_HINIT ); + assert( hIC->hdr.htype == WH_HINIT ); if (NULL == lpszUserName && NULL != lpszPassword) { @@ -2743,6 +2743,8 @@ BOOL FTP_ConvertFileProp(LPFILEPROPERTIESW lpafp, LPWIN32_FIND_DATAW lpFindFileD /* Convert 'Unix' time to Windows time */ RtlSecondsSince1970ToTime(mktime(&lpafp->tmLastModified), (LARGE_INTEGER *) &(lpFindFileData->ftLastAccessTime)); + lpFindFileData->ftLastWriteTime = lpFindFileData->ftLastAccessTime; + lpFindFileData->ftCreationTime = lpFindFileData->ftLastAccessTime; /* Not all fields are filled in */ lpFindFileData->nFileSizeHigh = 0; /* We do not handle files bigger than 0xFFFFFFFF bytes yet :-) */ -- 2.11.4.GIT