wininet patch - fix (?) assertion and setting file times
Krzysztof Foltman
kfoltman at portal.onet.pl
Sat Sep 4 09:13:56 CDT 2004
ChangeLog:
* reversed the assertion causing InternetConnect to always fail
* FTP_ConvertFileProp: WIN32_FIND_DATA contains proper modification and
creation time
Chris
-------------- next part --------------
Index: dlls/wininet/ftp.c
===================================================================
RCS file: /home/wine/wine/dlls/wininet/ftp.c,v
retrieving revision 1.46
diff -u -r1.46 ftp.c
--- dlls/wininet/ftp.c 3 Sep 2004 18:57:19 -0000 1.46
+++ dlls/wininet/ftp.c 4 Sep 2004 14:08:26 -0000
@@ -1631,7 +1631,7 @@
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 @@
/* 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 :-) */
More information about the wine-patches
mailing list