2 Copyright © 1995-2014, The AROS Development Team. All rights reserved.
12 #include "bootstrap.h"
14 static LPTSTR
StrConvert(const char *src
)
16 int len
= strlen(src
) + 1;
17 LPTSTR res
= malloc(len
* 2);
21 if (!MultiByteToWideChar(CP_ACP
, 0, src
, -1, res
, len
))
30 void kprintf(const char *fmt
, ...)
35 vfprintf(stderr
, fmt
, args
);
39 void DisplayError(char *fmt
, ...)
45 vsnprintf(buf
, sizeof(buf
), fmt
, args
);
48 str
= StrConvert(buf
);
49 MessageBox(NULL
, str
, TEXT("AROS bootstrap error"), MB_OK
|MB_ICONSTOP
);