Skip to content

Commit

Permalink
Add word pointer type
Browse files Browse the repository at this point in the history
  • Loading branch information
maxton committed Dec 20, 2016
1 parent 345b070 commit cc0adb9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/xenia/kernel/util/shim_utils.h
Expand Up @@ -304,6 +304,7 @@ using qword_t = const shim::ParamBase<uint64_t>&;
using float_t = const shim::ParamBase<float>&;
using double_t = const shim::ParamBase<double>&;
using lpvoid_t = const shim::PointerParam&;
using lpword_t = const shim::PrimitivePointerParam<uint16_t>&;
using lpdword_t = const shim::PrimitivePointerParam<uint32_t>&;
using lpqword_t = const shim::PrimitivePointerParam<uint64_t>&;
using lpfloat_t = const shim::PrimitivePointerParam<float>&;
Expand Down
5 changes: 2 additions & 3 deletions src/xenia/kernel/xboxkrnl/xboxkrnl_rtl.cc
Expand Up @@ -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<uint16_t> destination_ptr,
dword_result_t RtlMultiByteToUnicodeN(lpword_t destination_ptr,
dword_t destination_len,
lpdword_t written_ptr,
pointer_t<uint8_t> source_ptr,
Expand Down Expand Up @@ -260,8 +260,7 @@ DECLARE_XBOXKRNL_EXPORT(RtlMultiByteToUnicodeN,
dword_result_t RtlUnicodeToMultiByteN(pointer_t<uint8_t> destination_ptr,
dword_t destination_len,
lpdword_t written_ptr,
pointer_t<uint16_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;

Expand Down

0 comments on commit cc0adb9

Please sign in to comment.