Skip to content
Snippets Groups Projects
Commit 1b21dcc1 authored by Brian Carrier's avatar Brian Carrier
Browse files

Changed CreateFile flags for split images to allow READ_SHARE rights

parent 8e5857c8
No related branches found
No related tags found
No related merge requests found
......@@ -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.
......
......@@ -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,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment