aboutsummaryrefslogtreecommitdiff
path: root/Application
diff options
context:
space:
mode:
authorMattiwatti <mattiwatti@gmail.com>2019-05-06 19:15:42 +0200
committerMattiwatti <mattiwatti@gmail.com>2019-05-06 19:15:42 +0200
commit6dc5189d11d3e5690ee61e85c25e6aa5308a0264 (patch)
tree9e4fc99aee9faa65c614dedbc38daecc338b8dab /Application
parent363621d0a00e89af5e3a68f34242999f04355042 (diff)
Minor fixes
Diffstat (limited to 'Application')
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