diff --git a/CHANGES.txt b/CHANGES.txt index 012e53f7260f9a42daf90f6d9b67e50db185f065..fef0213355e6aa56379c33eee495c9aeda85b5bc 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -89,6 +89,10 @@ lines. Suggested by Simson Garfinkel. 4/28/09: Update: Added ability to build windows executables in VS w/out needing other image format libraries. +4/29/09: Bug Fix: Added the READ_SHARE option to the CreateFile command +for split image files. Patch by Christopher Siwy. + + ---------------- VERSION 3.0.0 -------------- 0/00/00: Update: Many, many, many API changes. diff --git a/tsk3/img/split.c b/tsk3/img/split.c index f50b733b3209de045cd7fd8fcbbf649a5195850d..0ee6fcabf36466665f18b3592cc376b615e1240a 100644 --- a/tsk3/img/split.c +++ b/tsk3/img/split.c @@ -60,7 +60,7 @@ split_read_segment(IMG_SPLIT_INFO * split_info, int idx, char *buf, #ifdef TSK_WIN32 if ((cimg->fd = CreateFile(split_info->images[idx], FILE_READ_DATA, - 0, 0, OPEN_EXISTING, 0, 0)) == INVALID_HANDLE_VALUE) { + FILE_SHARE_READ, NULL, OPEN_EXISTING, 0, NULL)) == INVALID_HANDLE_VALUE) { tsk_error_reset(); tsk_errno = TSK_ERR_IMG_OPEN; snprintf(tsk_errstr, TSK_ERRSTR_L,