[PATCH] setupapi: add stub for CM_Get_Device_Interface_Alias{A,W}

Louis Lenders xerox.xerox2000x at gmail.com
Wed May 13 03:06:09 CDT 2020


https://bugs.winehq.org/show_bug.cgi?id=49147

Signed-off-by: Louis Lenders <xerox.xerox2000x at gmail.com>
---
 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 43b837ca9e..83d9c598d9 100644
--- a/dlls/setupapi/setupapi.spec
+++ b/dlls/setupapi/setupapi.spec
@@ -89,8 +89,8 @@
 @ stub CM_Get_Device_ID_List_Size_ExW
 @ stdcall CM_Get_Device_ID_Size(ptr ptr long)
 @ stub CM_Get_Device_ID_Size_Ex
-@ stub CM_Get_Device_Interface_AliasA
-@ stub CM_Get_Device_Interface_AliasW
+@ stdcall CM_Get_Device_Interface_AliasA(str ptr ptr ptr long)
+@ stdcall CM_Get_Device_Interface_AliasW(wstr ptr ptr ptr long)
 @ stub CM_Get_Device_Interface_Alias_ExA
 @ stub CM_Get_Device_Interface_Alias_ExW
 @ stub CM_Get_Device_Interface_ListA
diff --git a/dlls/setupapi/stubs.c b/dlls/setupapi/stubs.c
index 47dca6c150..920dc670b7 100644
--- a/dlls/setupapi/stubs.c
+++ b/dlls/setupapi/stubs.c
@@ -391,6 +391,26 @@ CONFIGRET WINAPI CM_Get_Device_Interface_List_Size_ExW(PULONG len, LPGUID class,
     return CR_FAILURE;
 }
 
+/***********************************************************************
+ *      CM_Get_Device_Interface_AliasA (SETUPAPI.@)
+ */
+CONFIGRET WINAPI CM_Get_Device_Interface_AliasA(const CHAR *interface, GUID *class,
+                                                       CHAR *name, ULONG *len, ULONG flags)
+{
+    FIXME("%s %p %p %p 0x%08x: stub\n", debugstr_a(interface), class, name, len, flags);
+    return CR_FAILURE;
+}
+
+/***********************************************************************
+ *      CM_Get_Device_Interface_AliasW (SETUPAPI.@)
+ */
+CONFIGRET WINAPI CM_Get_Device_Interface_AliasW(const WCHAR *interface, GUID *class,
+                                                       WCHAR *name, ULONG *len, ULONG flags)
+{
+    FIXME("%s %p %p %p 0x%08x: stub\n", debugstr_w(interface), class, name, len, flags);
+    return CR_FAILURE;
+}
+
 /***********************************************************************
  *      CM_Get_DevNode_Registry_Property_ExA (SETUPAPI.@)
  */
-- 
2.26.2




More information about the wine-devel mailing list