setupapi: add CM_Get_Device_Interface_List_Size(A/W) stubs (1/2)

Austin English austinenglish at gmail.com
Mon Feb 3 04:13:49 CST 2014


Fixes http://bugs.winehq.org/show_bug.cgi?id=35489

-- 
-Austin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20140203/99db6473/attachment.html>
-------------- next part --------------
From 3c2dd124fd7dedaa732b055a8c8fbf0a75533a9f Mon Sep 17 00:00:00 2001
From: Austin English <austinenglish at gmail.com>
Date: Mon, 3 Feb 2014 01:56:59 -0800
Subject: [PATCH 1/2] setupapi: add CM_Get_Device_Interface_List_Size(A/W) stubs

---
 dlls/setupapi/setupapi.spec |  4 ++--
 dlls/setupapi/stubs.c       | 20 ++++++++++++++++++++
 2 files changed, 22 insertions(+), 2 deletions(-)

diff --git a/dlls/setupapi/setupapi.spec b/dlls/setupapi/setupapi.spec
index 4349055..edad156 100644
--- a/dlls/setupapi/setupapi.spec
+++ b/dlls/setupapi/setupapi.spec
@@ -95,8 +95,8 @@
 @ stub CM_Get_Device_Interface_ListW
 @ stub CM_Get_Device_Interface_List_ExA
 @ stub CM_Get_Device_Interface_List_ExW
-@ stub CM_Get_Device_Interface_List_SizeA
-@ stub CM_Get_Device_Interface_List_SizeW
+@ stdcall CM_Get_Device_Interface_List_SizeA(ptr str ptr long)
+@ stdcall CM_Get_Device_Interface_List_SizeW(ptr wstr ptr long)
 @ stdcall CM_Get_Device_Interface_List_Size_ExA(ptr ptr str long ptr)
 @ stdcall CM_Get_Device_Interface_List_Size_ExW(ptr ptr wstr long ptr)
 @ stub CM_Get_First_Log_Conf
diff --git a/dlls/setupapi/stubs.c b/dlls/setupapi/stubs.c
index fad9d23..1b4008b 100644
--- a/dlls/setupapi/stubs.c
+++ b/dlls/setupapi/stubs.c
@@ -143,6 +143,26 @@ CONFIGRET WINAPI CM_Get_Device_ID_List_SizeW( PULONG  pulLen, PCWSTR  pszFilter,
 }
 
 /***********************************************************************
+ *             CM_Get_Device_Interface_List_SizeA (SETUPAPI.@)
+ */
+CONFIGRET WINAPI CM_Get_Device_Interface_List_SizeA( PULONG len, LPGUID interface_class_guid, DEVINSTID_A device_id, ULONG flags )
+{
+    FIXME("%p %s %s 0x%08x: stub\n", len, debugstr_guid(interface_class_guid), debugstr_a(device_id), flags);
+
+    return CR_SUCCESS;
+}
+
+/***********************************************************************
+ *             CM_Get_Device_Interface_List_SizeW (SETUPAPI.@)
+ */
+CONFIGRET WINAPI CM_Get_Device_Interface_List_SizeW( PULONG len, LPGUID interface_class_guid, DEVINSTID_W device_id, ULONG flags )
+{
+    FIXME("%p %s %s 0x%08x: stub\n", len, debugstr_guid(interface_class_guid), debugstr_w(device_id), flags);
+
+    return CR_SUCCESS;
+}
+
+/***********************************************************************
  *              CM_Get_Parent (SETUPAPI.@)
  */
 DWORD WINAPI CM_Get_Parent(PDEVINST pdnDevInst, DEVINST dnDevInst, ULONG ulFlags)
-- 
1.8.3.1



More information about the wine-patches mailing list