From f20a6b9f24af320d623fd0f204da9f9cbdd5dcab Mon Sep 17 00:00:00 2001 From: "dougt%netscape.com" Date: Mon, 31 Jan 2000 23:07:35 +0000 Subject: [PATCH] Since we are only getting information about this file, we should no pass the GENERIC_READ flag. --- xpcom/io/nsLocalFileWin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xpcom/io/nsLocalFileWin.cpp b/xpcom/io/nsLocalFileWin.cpp index 8c1393b45b25..aa03587073a5 100644 --- a/xpcom/io/nsLocalFileWin.cpp +++ b/xpcom/io/nsLocalFileWin.cpp @@ -132,7 +132,7 @@ MyGetFileAttributesEx(const char* file, WIN32_FILE_ATTRIBUTE_DATA* data) if(! (data->dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY)) { HANDLE hFile = CreateFile(file, - GENERIC_READ, + 0, FILE_SHARE_READ, NULL, OPEN_EXISTING,