diff options
author | John Ankarström <john@ankarstrom.se> | 2022-08-26 03:17:09 +0200 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2022-08-26 03:17:09 +0200 |
commit | eb7709d8617bec27349eebb43e8941b3aaaf453e (patch) | |
tree | 7c8627586ed18132b0304b779a00d8acc61e7a0d /c/data.cpp | |
parent | a9a74875dbd5340b6f3ea6d8b6f66a04b360b22a (diff) | |
download | EpisodeBrowser-eb7709d8617bec27349eebb43e8941b3aaaf453e.tar.gz |
Use FunctionW names explicitly instead of macros.
It's uglier, but it makes Visual Studio show better tooltips.
Diffstat (limited to 'c/data.cpp')
-rw-r--r-- | c/data.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -8,6 +8,7 @@ #include "resource.h" #include "data.h" #include "episodelistview.h" +#include "util.h" #include "win.h" struct XmlError : public std::exception @@ -31,7 +32,7 @@ using XmlXPathContextPtr = Managed<xmlXPathContextPtr, xmlXPathFreeContext, XmlE using XmlXPathObjectPtr = Managed<xmlXPathObjectPtr, xmlXPathFreeObject, XmlError>; using XmlCharPtr = Managed<xmlChar*, XmlFree, XmlError>; -static InternetHandle s_hi = InternetOpen(L"Episode Browser", INTERNET_OPEN_TYPE_DIRECT, nullptr, nullptr, 0); +static InternetHandle s_hi = InternetOpenW(L"Episode Browser", INTERNET_OPEN_TYPE_DIRECT, nullptr, nullptr, 0); /* ParsedDoc downloads and parses an HTML document. */ struct ParsedDoc @@ -45,7 +46,7 @@ struct ParsedDoc char bufX[1024]; ParsedDoc(const wchar_t* wszUrl, const char* szUrl) - : hiUrl(InternetOpenUrl(s_hi, wszUrl, nullptr, 0, INTERNET_FLAG_NO_UI, 0)), + : hiUrl(InternetOpenUrlW(s_hi, wszUrl, nullptr, 0, INTERNET_FLAG_NO_UI, 0)), ctxt(htmlCreatePushParserCtxt(nullptr, nullptr, bufX, sizeof(bufX), szUrl, XML_CHAR_ENCODING_UTF8)) { htmlCtxtUseOptions(ctxt, HTML_PARSE_RECOVER|HTML_PARSE_NOERROR|HTML_PARSE_NOWARNING); |