WebParser now logs WININET error string. (errorcode > 12000)

This commit is contained in:
spx 2011-02-18 13:49:27 +00:00
parent 96f8407c74
commit 84c91cb1ba

View File

@ -1759,10 +1759,11 @@ void ShowError(int lineNumber, WCHAR* errorMsg)
FormatMessage(
FORMAT_MESSAGE_ALLOCATE_BUFFER |
FORMAT_MESSAGE_FROM_HMODULE |
FORMAT_MESSAGE_FROM_SYSTEM |
FORMAT_MESSAGE_IGNORE_INSERTS |
FORMAT_MESSAGE_MAX_WIDTH_MASK,
NULL,
GetModuleHandle(L"wininet"),
dwErr,
MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), // Default language
(LPTSTR) &lpMsgBuf,