]> mj.ucw.cz Git - pciutils.git/commit
libpci: windows: Fix locating path to pci.ids file for DLL builds
authorPali Rohár <pali@kernel.org>
Fri, 18 Nov 2022 20:54:53 +0000 (21:54 +0100)
committerPali Rohár <pali@kernel.org>
Fri, 18 Nov 2022 20:54:53 +0000 (21:54 +0100)
commita7a7aaeaa9feca5377a0da891d2d444db20cdb7d
tree3a8ae65867433438ed0d8e1d07f49dc48dc11344
parent0382965825caa27deaac3ab6a25145c896b9053b
libpci: windows: Fix locating path to pci.ids file for DLL builds

When using shared libpci DLL library, it is expected that pci.ids file is
stored in directory where is also libpci DLL library and not in directory
where is application executable.

Based on the build mode and compile options, choose the appropriate
function for retrieving path to the libpci DLL library or application
executable. Also pass correct module argument to GetModuleFileName() call.
lib/init.c