[PATCH] setupapi: Add stub for SetupDiSelectBestCompatDrv.

Marcus Meissner marcus at jet.franken.de
Thu Jun 11 10:52:10 CDT 2015


From: Austin English <austinenglish at gmail.com>

for wine bug 32088

Austin does not seem to have sent this patch before.
Marcus: replaced camelcase
---
 dlls/setupapi/setupapi.spec |  1 +
 dlls/setupapi/stubs.c       | 11 +++++++++++
 2 files changed, 12 insertions(+)

diff --git a/dlls/setupapi/setupapi.spec b/dlls/setupapi/setupapi.spec
index c1dbed5..4486994 100644
--- a/dlls/setupapi/setupapi.spec
+++ b/dlls/setupapi/setupapi.spec
@@ -381,6 +381,7 @@
 @ stdcall SetupDiRegisterDeviceInfo(ptr ptr long ptr ptr ptr)
 @ stdcall SetupDiRemoveDevice(ptr ptr)
 @ stub SetupDiRemoveDeviceInterface
+@ stdcall SetupDiSelectBestCompatDrv(ptr ptr)
 @ stub SetupDiSelectDevice
 @ stub SetupDiSelectOEMDrv
 @ stdcall SetupDiSetClassInstallParamsA(ptr ptr ptr long)
diff --git a/dlls/setupapi/stubs.c b/dlls/setupapi/stubs.c
index a57f5fe..1b3bf4d 100644
--- a/dlls/setupapi/stubs.c
+++ b/dlls/setupapi/stubs.c
@@ -594,6 +594,17 @@ BOOL WINAPI SetupDiLoadClassIcon(const GUID *ClassGuid, HICON *LargeIcon, PINT M
 }
 
 /***********************************************************************
+ *              SetupDiSelectBestCompatDrv (SETUPAPI.@)
+ */
+BOOL WINAPI SetupDiSelectBestCompatDrv(HDEVINFO deviceinfo_set, PSP_DEVINFO_DATA deviceinfo_data)
+{
+    FIXME(": stub %p, %p\n", deviceinfo_set, deviceinfo_data);
+
+    SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+    return FALSE;
+}
+
+/***********************************************************************
  *              SetupDiSetSelectedDevice  (SETUPAPI.@)
  */
 BOOL WINAPI SetupDiSetSelectedDevice(HDEVINFO SetupDiSetSelectedDevice, PSP_DEVINFO_DATA DeviceInfoData)
-- 
1.8.4.5




More information about the wine-patches mailing list