Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
fe5a3a24
Commit
fe5a3a24
authored
Apr 07, 2004
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Better fallback in SetFileTime when futimes is missing.
parent
f8371796
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
file.c
files/file.c
+5
-6
No files found.
files/file.c
View file @
fe5a3a24
...
...
@@ -1708,14 +1708,14 @@ BOOL WINAPI SetFileTime( HANDLE hFile,
const
FILETIME
*
atime
,
const
FILETIME
*
mtime
)
{
#ifdef HAVE_FUTIMES
BOOL
ret
=
FALSE
;
NTSTATUS
status
;
int
fd
;
ULONGLONG
sec
,
nsec
;
if
(
!
(
status
=
wine_server_handle_to_fd
(
hFile
,
GENERIC_WRITE
,
&
fd
,
NULL
,
NULL
)))
{
#ifdef HAVE_FUTIMES
ULONGLONG
sec
,
nsec
;
struct
timeval
tv
[
2
];
if
(
!
atime
||
!
mtime
)
...
...
@@ -1747,14 +1747,13 @@ BOOL WINAPI SetFileTime( HANDLE hFile,
if
(
!
futimes
(
fd
,
tv
))
ret
=
TRUE
;
else
FILE_SetDosError
();
#else
ret
=
TRUE
;
/* pretend it succeeded */
#endif
wine_server_release_fd
(
hFile
,
fd
);
}
else
SetLastError
(
RtlNtStatusToDosError
(
status
)
);
return
ret
;
#else
SetLastError
(
ERROR_CALL_NOT_IMPLEMENTED
);
return
FALSE
;
#endif
/* HAVE_FUTIMES */
}
...
...
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