From c808b59834e259cad834da4f144a93aff433e419 Mon Sep 17 00:00:00 2001 From: gibbed Date: Sun, 25 Aug 2019 16:18:58 -0500 Subject: [PATCH] [x64] Simplify growable function pointer definitions. --- src/xenia/cpu/backend/x64/x64_code_cache_win.cc | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/src/xenia/cpu/backend/x64/x64_code_cache_win.cc b/src/xenia/cpu/backend/x64/x64_code_cache_win.cc index 35496c746..aed5d3f60 100644 --- a/src/xenia/cpu/backend/x64/x64_code_cache_win.cc +++ b/src/xenia/cpu/backend/x64/x64_code_cache_win.cc @@ -21,16 +21,10 @@ #include "xenia/cpu/function.h" // Function pointer definitions -typedef DWORD(NTAPI* FnRtlAddGrowableFunctionTable)( - _Out_ PVOID* DynamicTable, - _In_reads_(MaximumEntryCount) PRUNTIME_FUNCTION FunctionTable, - _In_ DWORD EntryCount, _In_ DWORD MaximumEntryCount, - _In_ ULONG_PTR RangeBase, _In_ ULONG_PTR RangeEnd); - -typedef VOID(NTAPI* FnRtlGrowFunctionTable)(_Inout_ PVOID DynamicTable, - _In_ DWORD NewEntryCount); - -typedef VOID(NTAPI* FnRtlDeleteGrowableFunctionTable)(_In_ PVOID DynamicTable); +using FnRtlAddGrowableFunctionTable = decltype(&RtlAddGrowableFunctionTable); +using FnRtlGrowFunctionTable = decltype(&RtlGrowFunctionTable); +using FnRtlDeleteGrowableFunctionTable = + decltype(&RtlDeleteGrowableFunctionTable); namespace xe { namespace cpu {