aboutsummaryrefslogtreecommitdiff
path: root/Application/EfiDSEFix/src/EfiDSEFix.h
diff options
context:
space:
mode:
Diffstat (limited to 'Application/EfiDSEFix/src/EfiDSEFix.h')
-rw-r--r--Application/EfiDSEFix/src/EfiDSEFix.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/Application/EfiDSEFix/src/EfiDSEFix.h b/Application/EfiDSEFix/src/EfiDSEFix.h
index e7cb109..9b79489 100644
--- a/Application/EfiDSEFix/src/EfiDSEFix.h
+++ b/Application/EfiDSEFix/src/EfiDSEFix.h
@@ -140,7 +140,14 @@ Printf(
va_list VaList;
va_start(VaList, Format);
ULONG N = _vsnwprintf(Buffer, sizeof(Buffer) / sizeof(WCHAR) - 1, Format, VaList);
+#if defined(_NATIVE)
+ UNREFERENCED_PARAMETER(N);
+ UNICODE_STRING String;
+ RtlInitUnicodeString(&String, Buffer);
+ NtDisplayString(&String);
+#else
WriteConsoleW(NtCurrentPeb()->ProcessParameters->StandardOutput, Buffer, N, &N, NULL);
+#endif
va_end(VaList);
}