> > Changelog: > - LZCopy: modified timestamp of a expanded file have to be the same of > original file. > > Index: dlls/lzexpand/lzexpand_main.c > =================================================================== > RCS file: /home/wine/wine/dlls/lzexpand/lzexpand_main.c,v > retrieving revision 1.20 > diff -u -r1.20 lzexpand_main.c > --- dlls/lzexpand/lzexpand_main.c 30 Apr 2003 17:15:06 -0000 1.20 > +++ dlls/lzexpand/lzexpand_main.c 9 Jul 2003 17:03:14 -0000 > @@ -476,6 +476,16 @@ > if (wret!=ret) > return LZERROR_WRITE; > } > + > + /* Change the timestamp of file */ > + HFILE fd; > + FILETIME filetime; > + struct lzstate *lzs;
Sorry, but this won't compile on older versions of gcc. You need to put the variable declarations at the start of the block. > + fd = (!(lzs = GET_LZ_STATE(src))) ? src : lzs->realfd; > + GetFileTime((HANDLE)fd, NULL, NULL, &filetime); > + SetFileTime((HANDLE)dest, NULL, NULL, &filetime); > + > + /* close handle */ > if (usedlzinit) > LZClose(src); > return len; > Rob