aboutsummaryrefslogtreecommitdiff
path: root/Application
diff options
context:
space:
mode:
Diffstat (limited to 'Application')
-rw-r--r--Application/EfiDSEFix/src/EfiDSEFix.h6
-rw-r--r--Application/EfiDSEFix/src/pe.cpp2
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