Mercurial > hg > xemacs-beta
comparison src/nt.c @ 605:47823c2cf014
[xemacs-hg @ 2001-06-02 06:16:53 by ben]
nt.c: fix off-by-one-indirection error.
author | ben |
---|---|
date | Sat, 02 Jun 2001 06:16:55 +0000 |
parents | 4f6ba8f1fb3d |
children | 38db05db9cb5 |
comparison
equal
deleted
inserted
replaced
604:fa3b8eb89cb2 | 605:47823c2cf014 |
---|---|
2273 | 2273 |
2274 int | 2274 int |
2275 mswindows_utime (Lisp_Object path, struct utimbuf *times) | 2275 mswindows_utime (Lisp_Object path, struct utimbuf *times) |
2276 { | 2276 { |
2277 struct utimbuf deftime; | 2277 struct utimbuf deftime; |
2278 #if 0 | |
2278 HANDLE fh; | 2279 HANDLE fh; |
2280 #endif | |
2279 static FILETIME mtime; | 2281 static FILETIME mtime; |
2280 static FILETIME atime; | 2282 static FILETIME atime; |
2281 Extbyte *filename; | 2283 Extbyte *filename; |
2282 | 2284 |
2283 if (times == NULL) | 2285 if (times == NULL) |
2309 errno = EINVAL; | 2311 errno = EINVAL; |
2310 return -1; | 2312 return -1; |
2311 } | 2313 } |
2312 return 0; | 2314 return 0; |
2313 #else | 2315 #else |
2314 return utime (filename, ×); | 2316 return utime (filename, times); |
2315 #endif | 2317 #endif |
2316 } | 2318 } |
2317 | 2319 |
2318 /* Close the system structures associated with the given file. */ | 2320 /* Close the system structures associated with the given file. */ |
2319 void | 2321 void |