Added missing CloseHandle, detected by Coverty.

This commit is contained in:
Klaas Freitag 2013-06-05 16:34:58 +02:00
parent e92a422d3d
commit cab00ea668

View file

@ -134,6 +134,7 @@ int c_utimes(const char *uri, const struct timeval *times) {
if(!SetFileTime(hFile, NULL, &LastAccessTime, &LastModificationTime)) {
//can this happen?
errno=ENOENT;
CloseHandle(hFile);
return -1;
}