From 67e73cb33d72e759c2e2d230d28e9243f8b2e69a Mon Sep 17 00:00:00 2001 From: gibbed Date: Sat, 18 Jan 2014 23:44:39 -0800 Subject: [PATCH] Added support for restart scan argument to NtQueryDirectoryFile. --- src/xenia/kernel/xboxkrnl_io.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/xenia/kernel/xboxkrnl_io.cc b/src/xenia/kernel/xboxkrnl_io.cc index dcdb8d4fb..149ce6016 100644 --- a/src/xenia/kernel/xboxkrnl_io.cc +++ b/src/xenia/kernel/xboxkrnl_io.cc @@ -468,6 +468,7 @@ SHIM_CALL NtQueryDirectoryFile_shim( uint32_t file_info_ptr = SHIM_GET_ARG_32(5); uint32_t length = SHIM_GET_ARG_32(6); uint32_t file_name_ptr = SHIM_GET_ARG_32(7); + uint32_t restart_scan = SHIM_GET_ARG_32(8); XELOGD( "NtQueryDirectoryFile(%.8X, %.8X, %.8X, %.8X, %.8X, %.8X, %d, %.8X)", @@ -501,7 +502,7 @@ SHIM_CALL NtQueryDirectoryFile_shim( file_handle, (XObject**)&file); if (XSUCCEEDED(result)) { XDirectoryInfo* dirInfo = (XDirectoryInfo*)xe_malloc(length); - result = file->QueryDirectory(dirInfo, length, false); + result = file->QueryDirectory(dirInfo, length, restart_scan != 0); if (XSUCCEEDED(result)) { dirInfo->Write(SHIM_MEM_BASE, file_info_ptr); info = length;