From a355e8ad2733d3d4fadaa143e415e415e6d76745 Mon Sep 17 00:00:00 2001 From: Eric Kohl Date: Sun, 17 Apr 2022 14:29:14 +0200 Subject: [PATCH] [SETUPAPI] SetupDiCreateDeviceInfoW creates phantom devices --- dll/win32/setupapi/devinst.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dll/win32/setupapi/devinst.c b/dll/win32/setupapi/devinst.c index c3d4a68f977..065c857bb22 100644 --- a/dll/win32/setupapi/devinst.c +++ b/dll/win32/setupapi/devinst.c @@ -2,7 +2,7 @@ * SetupAPI device installer * * Copyright 2000 Andreas Mohr for CodeWeavers - * 2005-2006 Hervé Poussineau (hpoussin@reactos.org) + * 2005-2006 HervĂ© Poussineau (hpoussin@reactos.org) * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -1636,6 +1636,7 @@ BOOL WINAPI SetupDiCreateDeviceInfoW( cr = CM_Create_DevInst_ExW(&DevInst, (DEVINSTID)DeviceName, RootDevInst, + CM_CREATE_DEVINST_PHANTOM | (CreationFlags & DICD_GENERATE_ID) ? CM_CREATE_DEVINST_GENERATE_ID : 0, set->hMachine);