[PATCH 4/4] dpinst: Install the INF file from the driver store.

Zebediah Figura zfigura at codeweavers.com
Mon Feb 7 23:36:10 CST 2022


Signed-off-by: Zebediah Figura <zfigura at codeweavers.com>
---
 programs/dpinst/dpinst.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/programs/dpinst/dpinst.c b/programs/dpinst/dpinst.c
index f883dcb8689..72fac1638b8 100644
--- a/programs/dpinst/dpinst.c
+++ b/programs/dpinst/dpinst.c
@@ -337,6 +337,9 @@ static void install_inf(const WCHAR *root, const WCHAR *filename)
 
     SetupCloseFileQueue(copy_ctx.queue);
     SetupCloseInfFile(copy_ctx.hinf);
+
+    if (!SetupCopyOEMInfW(concat_path(copy_ctx.dst_root, filename), NULL, SPOST_NONE, 0, NULL, 0, NULL, NULL))
+        ERR("Failed to copy INF, error %lu.\n", GetLastError());
 }
 
 static bool parse_options(struct options *options, int argc, WCHAR **argv)
-- 
2.34.1




More information about the wine-devel mailing list