I applied the modifications.

Tnx


On Wed, Jan 15, 2014 at 1:49 AM, Lu Wang <notifications@github.com> wrote:

> In src/util/win32.cc:
>
> > +        free(wd);
> > +    }
> > +    s += "/data";
> > +    return s;
> > +}
> > +
> > +string get_tmp_dir()
> > +{
> > +    // Under Windows, the temp path is not under /tmp, find it.
> > +    char *tmp = getenv("TMP");
> > +    if (tmp == nullptr) {
> > +        tmp = getenv("TEMP");
> > +    }
> > +
> > +    if (tmp == nullptr) {
> > +        cerr << "Error: Cannot find temporary directory. Export TMP/TEMP variable.";
>
> This function is only used to locate the default location, and a user may
> specify its own.
> So I think it does not make sense to show the error here.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/coolwanglu/pdf2htmlEX/pull/285/files#r8887833>
> .
>