Skip to content

Commit

Permalink
Perform some minor stylistical changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Bikovitsky committed Mar 12, 2016
1 parent 543268c commit 081f1f9
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 18 deletions.
2 changes: 0 additions & 2 deletions WingDbg/Exports.cpp
Expand Up @@ -26,8 +26,6 @@ HRESULT CALLBACK regfix(
_In_opt_ PCSTR pszArgs
)
{
UNREFERENCED_PARAMETER(pszArgs);

try
{
WingDbg::Extensions::RegFix(piClient, pszArgs);
Expand Down
32 changes: 16 additions & 16 deletions WingDbg/RegFixHelper.c
Expand Up @@ -33,25 +33,25 @@ FARPROC g_apfnOriginalFunctions[HOOKS_COUNT] = { NULL };
// Typedefs
//

typedef HRESULT(__stdcall * PFN_GETVALUE)(
_Inout_ IDebugRegisters2 * piThis,
typedef HRESULT(STDMETHODCALLTYPE * PFN_GETVALUE)(
_In_ IDebugRegisters2 * piThis,
_In_ ULONG nRegister,
_Out_ PDEBUG_VALUE ptValue
);

typedef HRESULT(__stdcall * PFN_GETVALUES)(
_Inout_ IDebugRegisters2 * piThis,
typedef HRESULT(STDMETHODCALLTYPE * PFN_GETVALUES)(
_In_ IDebugRegisters2 * piThis,
_In_ ULONG nCount,
_In_opt_count_(nCount) PULONG pnIndices,
_In_reads_opt_(nCount) PULONG pnIndices,
_In_ ULONG nStartIndex,
_Out_writes_(nCount) PDEBUG_VALUE ptValues
);

typedef HRESULT(__stdcall * PFN_GETVALUES2)(
_Inout_ IDebugRegisters2 * piThis,
typedef HRESULT(STDMETHODCALLTYPE * PFN_GETVALUES2)(
_In_ IDebugRegisters2 * piThis,
_In_ ULONG eSource,
_In_ ULONG nCount,
_In_opt_count_(nCount) PULONG pnIndices,
_In_reads_opt_(nCount) PULONG pnIndices,
_In_ ULONG nStartIndex,
_Out_writes_(nCount) PDEBUG_VALUE ptValues
);
Expand Down Expand Up @@ -112,8 +112,8 @@ static HRESULT regfixhelper_HandleGet(
return hrResult;
}

static HRESULT __stdcall regfixhelper_GetValueHook(
_Inout_ IDebugRegisters2 * piThis,
static HRESULT STDMETHODCALLTYPE regfixhelper_GetValueHook(
_In_ IDebugRegisters2 * piThis,
_In_ ULONG nRegister,
_Out_ PDEBUG_VALUE ptValue
)
Expand Down Expand Up @@ -147,10 +147,10 @@ static HRESULT __stdcall regfixhelper_GetValueHook(
return hrResult;
}

static HRESULT __stdcall regfixhelper_GetValuesHook(
_Inout_ IDebugRegisters2 * piThis,
static HRESULT STDMETHODCALLTYPE regfixhelper_GetValuesHook(
_In_ IDebugRegisters2 * piThis,
_In_ ULONG nCount,
_In_opt_count_(nCount) PULONG pnIndices,
_In_reads_opt_(nCount) PULONG pnIndices,
_In_ ULONG nStartIndex,
_Out_writes_(nCount) PDEBUG_VALUE ptValues
)
Expand Down Expand Up @@ -184,11 +184,11 @@ static HRESULT __stdcall regfixhelper_GetValuesHook(
return hrResult;
}

static HRESULT __stdcall regfixhelper_GetValues2Hook(
_Inout_ IDebugRegisters2 * piThis,
static HRESULT STDMETHODCALLTYPE regfixhelper_GetValues2Hook(
_In_ IDebugRegisters2 * piThis,
_In_ ULONG eSource,
_In_ ULONG nCount,
_In_opt_count_(nCount) PULONG pnIndices,
_In_reads_opt_(nCount) PULONG pnIndices,
_In_ ULONG nStartIndex,
_Out_writes_(nCount) PDEBUG_VALUE ptValues
)
Expand Down

0 comments on commit 081f1f9

Please sign in to comment.