bug 491972 - error building SimpleTypeLib.c due to perror() call r=bsmedberg

This commit is contained in:
Hiroyuki Ikezoe 2009-06-18 07:31:12 -04:00
parent 8856cad042
commit 499c51791c

View File

@ -58,6 +58,23 @@
#define TRY(msg, cond) TRY_(msg, cond, 0)
#define TRY_Q(msg, cond) TRY_(msg, cond, 1);
#ifdef WINCE
#include <windows.h>
static void
perror(const char *message)
{
LPVOID msgBuf;
FormatMessage(FORMAT_MESSAGE_ALLOCATE_BUFFER |
FORMAT_MESSAGE_FROM_SYSTEM,
NULL,
GetLastError(),
0,
(LPTSTR)&msgBuf, 0, NULL);
wprintf(L"%s: %s\n", message, msgBuf);
LocalFree(msgBuf);
}
#endif /* WINCE */
struct nsID iid = {
0x00112233,
0x4455,