From 2aa04800dcd1c4fac0e7adfff08273ef4ab60cf3 Mon Sep 17 00:00:00 2001 From: "josh.macdonald" Date: Sat, 24 Mar 2007 13:59:04 +0000 Subject: Allow read-sharing for WIN32 CreateFile() --- xdelta3/xdelta3-main.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xdelta3/xdelta3-main.h') 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) #elif XD3_WIN32 xfile->file = CreateFile(name, (mode == XO_READ) ? GENERIC_READ : GENERIC_WRITE, - 0, + FILE_SHARE_READ, NULL, (mode == XO_READ) ? OPEN_EXISTING : (option_force ? CREATE_ALWAYS : CREATE_NEW), FILE_ATTRIBUTE_NORMAL, -- cgit v1.2.3