Skip to content
This repository has been archived by the owner on Nov 18, 2022. It is now read-only.

Commit

Permalink
#168: c96d225: fixed compiling error on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
hugbug committed Feb 18, 2016
1 parent b910d12 commit 4a08fdb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions daemon/feed/FeedFile.cpp
Expand Up @@ -109,15 +109,15 @@ bool FeedFile::Parse()
doc->put_validateOnParse(VARIANT_FALSE);
doc->put_async(VARIANT_FALSE);

_variant_t vFilename(*WString(fileName));
_variant_t vFilename(*WString(m_fileName));

// 1. first trying to load via filename without URL-encoding (certain charaters doesn't work when encoded)
VARIANT_BOOL success = doc->load(vFilename);
if (success == VARIANT_FALSE)
{
// 2. now trying filename encoded as URL
char url[2048];
EncodeUrl(fileName, url, 2048);
EncodeUrl(m_fileName, url, 2048);
debug("url=\"%s\"", url);
_variant_t vUrl(url);

Expand Down

0 comments on commit 4a08fdb

Please sign in to comment.