Fix definition of BY_HANDLE_FILE_INFORMATION structure.
This commit is contained in:
parent
781a5d6aed
commit
ca737fa478
|
@ -566,7 +566,7 @@ int _fstat(int fd, struct _stat* buf)
|
||||||
MSVCRT__set_errno(ERROR_INVALID_PARAMETER);
|
MSVCRT__set_errno(ERROR_INVALID_PARAMETER);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
FIXME(":dwFileAttributes = %d, mode set to 0\n",hfi.dwFileAttributes);
|
FIXME(":dwFileAttributes = %ld, mode set to 0\n",hfi.dwFileAttributes);
|
||||||
buf->st_nlink = hfi.nNumberOfLinks;
|
buf->st_nlink = hfi.nNumberOfLinks;
|
||||||
buf->st_size = hfi.nFileSizeLow;
|
buf->st_size = hfi.nFileSizeLow;
|
||||||
RtlTimeToSecondsSince1970(&hfi.ftLastAccessTime, &dw);
|
RtlTimeToSecondsSince1970(&hfi.ftLastAccessTime, &dw);
|
||||||
|
|
|
@ -2017,13 +2017,13 @@ BOOL FTP_SendData(LPWININETFTPSESSIONA lpwfs, INT nDataSocket, HANDLE hFile)
|
||||||
nSeconds = e_long_time - s_long_time;
|
nSeconds = e_long_time - s_long_time;
|
||||||
if( nSeconds / 60 > 0 )
|
if( nSeconds / 60 > 0 )
|
||||||
{
|
{
|
||||||
TRACE( "%ld bytes of %d bytes (%ld%%) in %ld min %ld sec estimated remainig time %ld sec\n",
|
TRACE( "%ld bytes of %ld bytes (%ld%%) in %ld min %ld sec estimated remainig time %ld sec\n",
|
||||||
nTotalSent, fi.nFileSizeLow, nTotalSent*100/fi.nFileSizeLow, nSeconds / 60,
|
nTotalSent, fi.nFileSizeLow, nTotalSent*100/fi.nFileSizeLow, nSeconds / 60,
|
||||||
nSeconds % 60, (fi.nFileSizeLow - nTotalSent) * nSeconds / nTotalSent );
|
nSeconds % 60, (fi.nFileSizeLow - nTotalSent) * nSeconds / nTotalSent );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
TRACE( "%ld bytes of %d bytes (%ld%%) in %ld sec estimated remainig time %ld sec\n",
|
TRACE( "%ld bytes of %ld bytes (%ld%%) in %ld sec estimated remainig time %ld sec\n",
|
||||||
nTotalSent, fi.nFileSizeLow, nTotalSent*100/fi.nFileSizeLow, nSeconds,
|
nTotalSent, fi.nFileSizeLow, nTotalSent*100/fi.nFileSizeLow, nSeconds,
|
||||||
(fi.nFileSizeLow - nTotalSent) * nSeconds / nTotalSent);
|
(fi.nFileSizeLow - nTotalSent) * nSeconds / nTotalSent);
|
||||||
}
|
}
|
||||||
|
|
|
@ -586,16 +586,16 @@ typedef struct {
|
||||||
|
|
||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
int dwFileAttributes;
|
DWORD dwFileAttributes;
|
||||||
FILETIME ftCreationTime;
|
FILETIME ftCreationTime;
|
||||||
FILETIME ftLastAccessTime;
|
FILETIME ftLastAccessTime;
|
||||||
FILETIME ftLastWriteTime;
|
FILETIME ftLastWriteTime;
|
||||||
int dwVolumeSerialNumber;
|
DWORD dwVolumeSerialNumber;
|
||||||
int nFileSizeHigh;
|
DWORD nFileSizeHigh;
|
||||||
int nFileSizeLow;
|
DWORD nFileSizeLow;
|
||||||
int nNumberOfLinks;
|
DWORD nNumberOfLinks;
|
||||||
int nFileIndexHigh;
|
DWORD nFileIndexHigh;
|
||||||
int nFileIndexLow;
|
DWORD nFileIndexLow;
|
||||||
} BY_HANDLE_FILE_INFORMATION, *PBY_HANDLE_FILE_INFORMATION, *LPBY_HANDLE_FILE_INFORMATION ;
|
} BY_HANDLE_FILE_INFORMATION, *PBY_HANDLE_FILE_INFORMATION, *LPBY_HANDLE_FILE_INFORMATION ;
|
||||||
|
|
||||||
#define PIPE_ACCESS_INBOUND 1
|
#define PIPE_ACCESS_INBOUND 1
|
||||||
|
|
Loading…
Reference in New Issue