You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by mt...@apache.org on 2009/06/30 12:32:12 UTC
svn commit: r789656 -
/commons/sandbox/runtime/trunk/src/main/native/os/win32/file.c
Author: mturk
Date: Tue Jun 30 10:32:12 2009
New Revision: 789656
URL: http://svn.apache.org/viewvc?rev=789656&view=rev
Log:
Use zero for access flags according to the MSDN
Modified:
commons/sandbox/runtime/trunk/src/main/native/os/win32/file.c
Modified: commons/sandbox/runtime/trunk/src/main/native/os/win32/file.c
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/native/os/win32/file.c?rev=789656&r1=789655&r2=789656&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/native/os/win32/file.c (original)
+++ commons/sandbox/runtime/trunk/src/main/native/os/win32/file.c Tue Jun 30 10:32:12 2009
@@ -792,12 +792,12 @@
FS2BS(J2W(pathname));
fh = CreateFileW(J2W(pathname),
- GENERIC_READ,
- FILE_SHARE_READ | FILE_SHARE_WRITE | FILE_SHARE_DELETE,
- NULL,
- OPEN_EXISTING,
- 0,
- NULL);
+ 0, /* Query attributes without accessing the file */
+ 0,
+ NULL,
+ OPEN_EXISTING,
+ 0,
+ NULL);
if (fh != INVALID_HANDLE_VALUE) {
BY_HANDLE_FILE_INFORMATION fi;
if (GetFileInformationByHandle(fh, &fi)) {