jwilk-archive / pdf2djvu

PDF to DjVu converter
GNU General Public License v2.0
94 stars 17 forks source link

Windows: can't determine tools's path if main executable is within PATH #85

Closed jwilk closed 9 years ago

jwilk commented 11 years ago

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.

References: http://msdn.microsoft.com/en-us/library/windows/desktop/ms683197%28v=vs.85%29.aspx

jwilk commented 9 years ago

This should be fixed in 50457d3ddd67f23991f41601a716f3e9d2f0c214.

jwilk commented 9 years ago

Fixed in 0.7.20.