[CMAKE]
[reactos.git] / boot / freeldr / freeldr / debug.c
index 4ab9096..08f49bd 100644 (file)
@@ -66,6 +66,19 @@ ULONG                BaudRate = 115200;
 
 BOOLEAN        DebugStartOfLine = TRUE;
 
+// We need to emulate these, because the original ones don't work in freeldr
+int __cdecl wctomb(char *mbchar, wchar_t wchar)
+{
+    *mbchar = wchar;
+    return 1;
+}
+
+int __cdecl mbtowc (wchar_t *wchar, const char *mbchar, size_t count)
+{
+    *wchar = *mbchar;
+    return 1;
+}
+
 VOID DebugInit(VOID)
 {
        if (DebugPort & RS232)
@@ -341,7 +354,6 @@ MsgBoxPrint(const char *Format, ...)
 }
 
 NTKERNELAPI
-DECLSPEC_NORETURN
 VOID
 NTAPI
 KeBugCheckEx(