diff options
author | Mattiwatti <mattiwatti@gmail.com> | 2019-05-06 19:15:42 +0200 |
---|---|---|
committer | Mattiwatti <mattiwatti@gmail.com> | 2019-05-06 19:15:42 +0200 |
commit | 6dc5189d11d3e5690ee61e85c25e6aa5308a0264 (patch) | |
tree | 9e4fc99aee9faa65c614dedbc38daecc338b8dab /Application | |
parent | 363621d0a00e89af5e3a68f34242999f04355042 (diff) |
Minor fixes
Diffstat (limited to 'Application')
-rw-r--r-- | Application/EfiDSEFix/src/EfiDSEFix.h | 6 | ||||
-rw-r--r-- | Application/EfiDSEFix/src/pe.cpp | 2 |
2 files changed, 4 insertions, 4 deletions
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 |