summaryrefslogtreecommitdiff
path: root/xdelta3/xdelta3-main.h
diff options
context:
space:
mode:
authorjosh.macdonald <jmacd@users.noreply.github.com>2007-03-24 13:59:04 +0000
committerjosh.macdonald <jmacd@users.noreply.github.com>2007-03-24 13:59:04 +0000
commit2aa04800dcd1c4fac0e7adfff08273ef4ab60cf3 (patch)
treeabfe587fcc5c7e427427418d724a2c8638553609 /xdelta3/xdelta3-main.h
parent4eafeb23fc939ddf0b127831281f73010aa87e85 (diff)
Allow read-sharing for WIN32 CreateFile()
Diffstat (limited to 'xdelta3/xdelta3-main.h')
-rw-r--r--xdelta3/xdelta3-main.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/xdelta3/xdelta3-main.h b/xdelta3/xdelta3-main.h
index 9723eb7..60190f0 100644
--- a/xdelta3/xdelta3-main.h
+++ b/xdelta3/xdelta3-main.h
@@ -770,7 +770,7 @@ main_file_open (main_file *xfile, const char* name, int mode)
770#elif XD3_WIN32 770#elif XD3_WIN32
771 xfile->file = CreateFile(name, 771 xfile->file = CreateFile(name,
772 (mode == XO_READ) ? GENERIC_READ : GENERIC_WRITE, 772 (mode == XO_READ) ? GENERIC_READ : GENERIC_WRITE,
773 0, 773 FILE_SHARE_READ,
774 NULL, 774 NULL,
775 (mode == XO_READ) ? OPEN_EXISTING : (option_force ? CREATE_ALWAYS : CREATE_NEW), 775 (mode == XO_READ) ? OPEN_EXISTING : (option_force ? CREATE_ALWAYS : CREATE_NEW),
776 FILE_ATTRIBUTE_NORMAL, 776 FILE_ATTRIBUTE_NORMAL,