From 6dc5189d11d3e5690ee61e85c25e6aa5308a0264 Mon Sep 17 00:00:00 2001 From: Mattiwatti Date: Mon, 6 May 2019 19:15:42 +0200 Subject: Minor fixes --- Application/EfiDSEFix/src/EfiDSEFix.h | 6 +++--- Application/EfiDSEFix/src/pe.cpp | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'Application') diff --git a/Application/EfiDSEFix/src/EfiDSEFix.h b/Application/EfiDSEFix/src/EfiDSEFix.h index 68dc238..0a99540 100644 --- a/Application/EfiDSEFix/src/EfiDSEFix.h +++ b/Application/EfiDSEFix/src/EfiDSEFix.h @@ -11,7 +11,7 @@ #if defined(__RESHARPER__) #define WPRINTF_ATTR(FormatIndex, FirstToCheck) \ - [[rscpp::format(wprintf, FormatIndex, FirstToCheck)]] + [[rscpp::format(wprintf, FormatIndex, FirstToCheck)]] #else #define WPRINTF_ATTR(FormatIndex, FirstToCheck) #endif @@ -47,7 +47,7 @@ MapFileSectionView( PVOID GetProcedureAddress( _In_ ULONG_PTR DllBase, - _In_ PCSTR RoutineName + _In_ PCCH RoutineName ); FORCEINLINE @@ -131,7 +131,7 @@ Printf( WCHAR Buffer[512]; va_list VaList; va_start(VaList, Format); - ULONG N = _vsnwprintf(Buffer, sizeof(Buffer), Format, VaList); + ULONG N = _vsnwprintf(Buffer, sizeof(Buffer) / sizeof(WCHAR) - 1, Format, VaList); WriteConsoleW(NtCurrentPeb()->ProcessParameters->StandardOutput, Buffer, N, &N, NULL); va_end(VaList); } diff --git a/Application/EfiDSEFix/src/pe.cpp b/Application/EfiDSEFix/src/pe.cpp index 223de04..2187537 100644 --- a/Application/EfiDSEFix/src/pe.cpp +++ b/Application/EfiDSEFix/src/pe.cpp @@ -113,7 +113,7 @@ MapFileSectionView( PVOID GetProcedureAddress( _In_ ULONG_PTR DllBase, - _In_ PCSTR RoutineName + _In_ PCCH RoutineName ) { // Find and verify PE headers -- cgit v1.2.3