Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
ca737fa4
Commit
ca737fa4
authored
Dec 26, 2001
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Dec 26, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix definition of BY_HANDLE_FILE_INFORMATION structure.
parent
781a5d6a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
10 deletions
+10
-10
file.c
dlls/msvcrt/file.c
+1
-1
ftp.c
dlls/wininet/ftp.c
+2
-2
winbase.h
include/winbase.h
+7
-7
No files found.
dlls/msvcrt/file.c
View file @
ca737fa4
...
...
@@ -566,7 +566,7 @@ int _fstat(int fd, struct _stat* buf)
MSVCRT__set_errno
(
ERROR_INVALID_PARAMETER
);
return
-
1
;
}
FIXME
(
":dwFileAttributes = %d, mode set to 0
\n
"
,
hfi
.
dwFileAttributes
);
FIXME
(
":dwFileAttributes = %
l
d, mode set to 0
\n
"
,
hfi
.
dwFileAttributes
);
buf
->
st_nlink
=
hfi
.
nNumberOfLinks
;
buf
->
st_size
=
hfi
.
nFileSizeLow
;
RtlTimeToSecondsSince1970
(
&
hfi
.
ftLastAccessTime
,
&
dw
);
...
...
dlls/wininet/ftp.c
View file @
ca737fa4
...
...
@@ -2017,13 +2017,13 @@ BOOL FTP_SendData(LPWININETFTPSESSIONA lpwfs, INT nDataSocket, HANDLE hFile)
nSeconds
=
e_long_time
-
s_long_time
;
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 %
l
d bytes (%ld%%) in %ld min %ld sec estimated remainig time %ld sec
\n
"
,
nTotalSent
,
fi
.
nFileSizeLow
,
nTotalSent
*
100
/
fi
.
nFileSizeLow
,
nSeconds
/
60
,
nSeconds
%
60
,
(
fi
.
nFileSizeLow
-
nTotalSent
)
*
nSeconds
/
nTotalSent
);
}
else
{
TRACE
(
"%ld bytes of %d bytes (%ld%%) in %ld sec estimated remainig time %ld sec
\n
"
,
TRACE
(
"%ld bytes of %
l
d bytes (%ld%%) in %ld sec estimated remainig time %ld sec
\n
"
,
nTotalSent
,
fi
.
nFileSizeLow
,
nTotalSent
*
100
/
fi
.
nFileSizeLow
,
nSeconds
,
(
fi
.
nFileSizeLow
-
nTotalSent
)
*
nSeconds
/
nTotalSent
);
}
...
...
include/winbase.h
View file @
ca737fa4
...
...
@@ -586,16 +586,16 @@ typedef struct {
typedef
struct
{
int
dwFileAttributes
;
DWORD
dwFileAttributes
;
FILETIME
ftCreationTime
;
FILETIME
ftLastAccessTime
;
FILETIME
ftLastWriteTime
;
int
dwVolumeSerialNumber
;
int
nFileSizeHigh
;
int
nFileSizeLow
;
int
nNumberOfLinks
;
int
nFileIndexHigh
;
int
nFileIndexLow
;
DWORD
dwVolumeSerialNumber
;
DWORD
nFileSizeHigh
;
DWORD
nFileSizeLow
;
DWORD
nNumberOfLinks
;
DWORD
nFileIndexHigh
;
DWORD
nFileIndexLow
;
}
BY_HANDLE_FILE_INFORMATION
,
*
PBY_HANDLE_FILE_INFORMATION
,
*
LPBY_HANDLE_FILE_INFORMATION
;
#define PIPE_ACCESS_INBOUND 1
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment