summaryrefslogtreecommitdiff
path: root/dviware/dvisvgm/src/MiKTeXCom.cpp
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-12-10 03:01:52 +0000
committerNorbert Preining <norbert@preining.info>2019-12-10 03:01:52 +0000
commit0174af21196c197a5b3672c87bc6f7a614fddd7d (patch)
tree00b155441be0755336593a3a2170f7531a055e99 /dviware/dvisvgm/src/MiKTeXCom.cpp
parentd1cebb67c836ee110bdbd3aeb622675df479c993 (diff)
CTAN sync 201912100301
Diffstat (limited to 'dviware/dvisvgm/src/MiKTeXCom.cpp')
-rw-r--r--dviware/dvisvgm/src/MiKTeXCom.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/dviware/dvisvgm/src/MiKTeXCom.cpp b/dviware/dvisvgm/src/MiKTeXCom.cpp
index 72c2af7f0e..957173f126 100644
--- a/dviware/dvisvgm/src/MiKTeXCom.cpp
+++ b/dviware/dvisvgm/src/MiKTeXCom.cpp
@@ -92,8 +92,7 @@ const char* MiKTeXCom::findFile (const char *fname) {
_bstr_t path;
static string ret;
#ifdef _MSC_VER
- HRESULT hres = _session->FindFile(fname, path.GetAddress());
- bool found = (hres != 0);
+ bool found = (_session->FindFile(fname, path.GetAddress()) == VARIANT_TRUE);
#else
VARIANT_BOOL found_var;
_session->FindFile(_bstr_t(fname), path.GetAddress(), &found_var);