From 5aabd3fe1aad423e86259c6fc5dbcc182a17c0a7 Mon Sep 17 00:00:00 2001 From: Birunthan Mohanathas Date: Mon, 21 Oct 2013 19:41:36 +0300 Subject: [PATCH] Fix mistake in 1414b30 --- Plugins/PluginWebParser/WebParser.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Plugins/PluginWebParser/WebParser.cpp b/Plugins/PluginWebParser/WebParser.cpp index a6ea8527..4ed43028 100644 --- a/Plugins/PluginWebParser/WebParser.cpp +++ b/Plugins/PluginWebParser/WebParser.cpp @@ -1541,7 +1541,10 @@ BYTE* DownloadUrl(HINTERNET handle, std::wstring& url, DWORD* dataSize, bool for hUrlDump = InternetOpenUrlA(handle, urlACP.c_str(), nullptr, 0, flags, 0); } - return nullptr; + if (!hUrlDump) + { + return nullptr; + } } // Allocate buffer with 3 extra bytes for triple null termination in case the string is