Changes by: uvman
Update of /cvs/linux-ntfs/ntfsprogs/libntfs
In directory delta357.server4you.de:/tmp/cvs-serv5942/libntfs
Modified Files:
win32_io.c
Log Message:
Allow reusing ntfs_device after close.
Index: win32_io.c
===================================================================
RCS file: /cvs/linux-ntfs/ntfsprogs/libntfs/win32_io.c,v
retrieving revision 1.46
retrieving revision 1.47
diff -u -p -r1.46 -r1.47
--- win32_io.c 3 Feb 2006 22:19:20 -0000 1.46
+++ win32_io.c 18 Oct 2006 14:44:23 -0000 1.47
@@ -1113,11 +1113,13 @@ static int ntfs_device_win32_close(struc
}
rvl = CloseHandle(fd->handle);
free(fd);
+ fd = NULL;
if (!rvl) {
errno = ntfs_w32error_to_errno(GetLastError());
ntfs_log_trace("CloseHandle() failed.\n");
return -1;
}
+ NDevClearOpen(dev);
return 0;
}
|