On Windows systems, pdf2djvu parses argv[0] to determine the directory where the other tools it uses are stored. But this doesn't work if the main executable is within PATH and thus argv[0] doesn't necessarily have any path component.
It should probably use GetModuleFileName() instead.
On Windows systems, pdf2djvu parses
argv[0]
to determine the directory where the other tools it uses are stored. But this doesn't work if the main executable is within PATH and thusargv[0]
doesn't necessarily have any path component.It should probably use
GetModuleFileName()
instead.References: http://msdn.microsoft.com/en-us/library/windows/desktop/ms683197%28v=vs.85%29.aspx