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
8ce2b13b
Commit
8ce2b13b
authored
Jul 11, 2003
by
Marcelo Duarte
Committed by
Alexandre Julliard
Jul 11, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
LZCopy: modified timestamp of a expanded file has to be the same of
original file.
parent
09029b28
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
lzexpand_main.c
dlls/lzexpand/lzexpand_main.c
+11
-2
No files found.
dlls/lzexpand/lzexpand_main.c
View file @
8ce2b13b
...
...
@@ -437,9 +437,11 @@ LONG WINAPI LZSeek( HFILE fd, LONG off, INT type )
*/
LONG
WINAPI
LZCopy
(
HFILE
src
,
HFILE
dest
)
{
int
usedlzinit
=
0
,
ret
,
wret
;
int
usedlzinit
=
0
,
ret
,
wret
;
LONG
len
;
HFILE
oldsrc
=
src
;
HFILE
oldsrc
=
src
,
srcfd
;
FILETIME
filetime
;
struct
lzstate
*
lzs
;
#define BUFLEN 1000
BYTE
buf
[
BUFLEN
];
/* we need that weird typedef, for i can't seem to get function pointer
...
...
@@ -476,6 +478,13 @@ LONG WINAPI LZCopy( HFILE src, HFILE dest )
if
(
wret
!=
ret
)
return
LZERROR_WRITE
;
}
/* Maintain the timestamp of source file to destination file */
srcfd
=
(
!
(
lzs
=
GET_LZ_STATE
(
src
)))
?
src
:
lzs
->
realfd
;
GetFileTime
((
HANDLE
)
srcfd
,
NULL
,
NULL
,
&
filetime
);
SetFileTime
((
HANDLE
)
dest
,
NULL
,
NULL
,
&
filetime
);
/* close handle */
if
(
usedlzinit
)
LZClose
(
src
);
return
len
;
...
...
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