Corrected NtQueryFullAttributesFile behavior when root_directory is 0.

This commit is contained in:
gibbed 2015-05-30 20:55:12 -05:00
parent 7c5ea52022
commit 633d72a98e
1 changed files with 2 additions and 1 deletions

View File

@ -564,7 +564,8 @@ SHIM_CALL NtQueryFullAttributesFile_shim(PPCContext* ppc_context,
X_STATUS result = X_STATUS_NO_SUCH_FILE; X_STATUS result = X_STATUS_NO_SUCH_FILE;
object_ref<XFile> root_file; object_ref<XFile> root_file;
if (attrs.root_directory != 0xFFFFFFFD) { // ObDosDevices if (attrs.root_directory != 0xFFFFFFFD && // ObDosDevices
attrs.root_directory != 0) {
root_file = root_file =
kernel_state->object_table()->LookupObject<XFile>(attrs.root_directory); kernel_state->object_table()->LookupObject<XFile>(attrs.root_directory);
assert_not_null(root_file); assert_not_null(root_file);