From 84c91cb1ba50540ab009b86d39ae07f3b9b7eb59 Mon Sep 17 00:00:00 2001 From: spx Date: Fri, 18 Feb 2011 13:49:27 +0000 Subject: [PATCH] WebParser now logs WININET error string. (errorcode > 12000) --- Plugins/PluginWebParser/WebParser.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Plugins/PluginWebParser/WebParser.cpp b/Plugins/PluginWebParser/WebParser.cpp index c2e2e55a..76ad2271 100644 --- a/Plugins/PluginWebParser/WebParser.cpp +++ b/Plugins/PluginWebParser/WebParser.cpp @@ -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,