mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
bug 491972 - error building SimpleTypeLib.c due to perror() call r=bsmedberg
This commit is contained in:
parent
8856cad042
commit
499c51791c
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user