24 format_win32_error(DWORD err)
31 n = FormatMessage(FORMAT_MESSAGE_ALLOCATE_BUFFER |
32 FORMAT_MESSAGE_FROM_SYSTEM |
33 FORMAT_MESSAGE_IGNORE_INSERTS,
35 MAKELANGID(LANG_ENGLISH, SUBLANG_DEFAULT),
43 len = (128 * 1024) * 2 + 1;
47 result = tor_malloc(len);
48 wcstombs(result,str,len);
51 result = tor_strdup(str);
54 result = tor_strdup(
"<unformattable error>");
Headers for util_malloc.c.