summaryrefslogtreecommitdiffstats
path: root/sandbox
diff options
context:
space:
mode:
authorjschuh <jschuh@chromium.org>2015-01-29 10:20:18 -0800
committerCommit bot <commit-bot@chromium.org>2015-01-29 18:21:06 +0000
commitb74af6e400fc645358503ea2e87cfb6c6e48aa56 (patch)
tree068e55e88cd109e5ba462e1176568d00b0eda87a /sandbox
parentb5b0414406e7b56204e11eb0f9c463fdfc295c4e (diff)
downloadchromium_src-b74af6e400fc645358503ea2e87cfb6c6e48aa56.zip
chromium_src-b74af6e400fc645358503ea2e87cfb6c6e48aa56.tar.gz
chromium_src-b74af6e400fc645358503ea2e87cfb6c6e48aa56.tar.bz2
Initialize create_disposition to FILE_OPEN in sandbox
This is a follow-up fix for: https://crrev.com/90b41f569db5cff7a8b8d170b81516dd006f57ba R=wfh@chromium.org BUG=438157 Review URL: https://codereview.chromium.org/890643002 Cr-Commit-Position: refs/heads/master@{#313738}
Diffstat (limited to 'sandbox')
-rw-r--r--sandbox/win/src/filesystem_dispatcher.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sandbox/win/src/filesystem_dispatcher.cc b/sandbox/win/src/filesystem_dispatcher.cc
index dcd30a7..4561be4 100644
--- a/sandbox/win/src/filesystem_dispatcher.cc
+++ b/sandbox/win/src/filesystem_dispatcher.cc
@@ -145,7 +145,7 @@ bool FilesystemDispatcher::NtOpenFile(IPCInfo* ipc,
const wchar_t* filename = name->c_str();
uint32 broker = TRUE;
- uint32 create_disposition = 0;
+ uint32 create_disposition = FILE_OPEN;
CountedParameterSet<OpenFile> params;
params[OpenFile::NAME] = ParamPickerMake(filename);
params[OpenFile::ACCESS] = ParamPickerMake(desired_access);