Bytes read via ReadFile!

This commit is contained in:
Ben Vanik
2013-10-16 20:50:46 -07:00
parent fea5c06180
commit 8e37fb8502
12 changed files with 105 additions and 34 deletions

View File

@@ -80,7 +80,11 @@ SHIM_CALL NtCreateFile_shim(
XFile* file = NULL;
if (entry && entry->type() == Entry::kTypeFile) {
// Open the file.
result = entry->Open(state, &file);
result = entry->Open(
state,
desired_access,
false, // TODO(benvanik): pick async mode, if needed.
&file);
} else {
result = X_STATUS_NO_SUCH_FILE;
info = X_FILE_DOES_NOT_EXIST;