https://git.reactos.org/?p=reactos.git;a=commitdiff;h=a355e8ad2733d3d4fadaa143e415e415e6d76745
commit a355e8ad2733d3d4fadaa143e415e415e6d76745 Author: Eric Kohl <[email protected]> AuthorDate: Sun Apr 17 14:29:14 2022 +0200 Commit: Eric Kohl <[email protected]> CommitDate: Sun Apr 17 14:29:14 2022 +0200 [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 ([email protected]) + * 2005-2006 Hervé Poussineau ([email protected]) * * 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);
