NtDuplicateObject.

This commit is contained in:
Ben Vanik
2014-01-05 15:56:37 -08:00
parent e8ca05ca0a
commit 0f95864b8d
4 changed files with 80 additions and 24 deletions

View File

@@ -11,7 +11,6 @@
#include <xenia/kernel/kernel_state.h>
#include <xenia/kernel/xboxkrnl_private.h>
#include <xenia/kernel/xobject.h>
#include <xenia/kernel/util/shim_utils.h>
@@ -24,27 +23,10 @@ namespace xe {
namespace kernel {
SHIM_CALL NtClose_shim(
PPCContext* ppc_state, KernelState* state) {
uint32_t handle = SHIM_GET_ARG_32(0);
XELOGD(
"NtClose(%.8X)",
handle);
X_STATUS result = X_STATUS_INVALID_HANDLE;
result = state->object_table()->RemoveHandle(handle);
SHIM_SET_RETURN(result);
}
} // namespace kernel
} // namespace xe
void xe::kernel::xboxkrnl::RegisterNtExports(
ExportResolver* export_resolver, KernelState* state) {
SHIM_SET_MAPPING("xboxkrnl.exe", NtClose, state);
}