From cc0adb95f15c9e668788c447f3744dd58b9606ce Mon Sep 17 00:00:00 2001 From: maxton Date: Tue, 20 Dec 2016 17:42:48 -0500 Subject: [PATCH] Add word pointer type --- src/xenia/kernel/util/shim_utils.h | 1 + src/xenia/kernel/xboxkrnl/xboxkrnl_rtl.cc | 5 ++--- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/xenia/kernel/util/shim_utils.h b/src/xenia/kernel/util/shim_utils.h index 4c50abb82..6ac6a26fa 100644 --- a/src/xenia/kernel/util/shim_utils.h +++ b/src/xenia/kernel/util/shim_utils.h @@ -304,6 +304,7 @@ using qword_t = const shim::ParamBase&; using float_t = const shim::ParamBase&; using double_t = const shim::ParamBase&; using lpvoid_t = const shim::PointerParam&; +using lpword_t = const shim::PrimitivePointerParam&; using lpdword_t = const shim::PrimitivePointerParam&; using lpqword_t = const shim::PrimitivePointerParam&; using lpfloat_t = const shim::PrimitivePointerParam&; diff --git a/src/xenia/kernel/xboxkrnl/xboxkrnl_rtl.cc b/src/xenia/kernel/xboxkrnl/xboxkrnl_rtl.cc index 1bd4d28c7..a8e129922 100644 --- a/src/xenia/kernel/xboxkrnl/xboxkrnl_rtl.cc +++ b/src/xenia/kernel/xboxkrnl/xboxkrnl_rtl.cc @@ -232,7 +232,7 @@ dword_result_t RtlUnicodeStringToAnsiString( DECLARE_XBOXKRNL_EXPORT(RtlUnicodeStringToAnsiString, ExportTag::kImplemented); // https://msdn.microsoft.com/en-us/library/ff553113 -dword_result_t RtlMultiByteToUnicodeN(pointer_t destination_ptr, +dword_result_t RtlMultiByteToUnicodeN(lpword_t destination_ptr, dword_t destination_len, lpdword_t written_ptr, pointer_t source_ptr, @@ -260,8 +260,7 @@ DECLARE_XBOXKRNL_EXPORT(RtlMultiByteToUnicodeN, dword_result_t RtlUnicodeToMultiByteN(pointer_t destination_ptr, dword_t destination_len, lpdword_t written_ptr, - pointer_t source_ptr, - dword_t source_len) { + lpword_t source_ptr, dword_t source_len) { uint32_t copy_len = source_len >> 1; copy_len = copy_len < destination_len ? copy_len : destination_len;