Louis Lenders : setupapi: Add stub for CM_Get_Device_Interface_Alias{A,W}.
Alexandre Julliard
julliard at winehq.org
Tue Nov 10 13:46:22 CST 2020
Module: wine
Branch: stable
Commit: 3f862a082ec7d05a4957fc8104eaf7df7033f779
URL: https://source.winehq.org/git/wine.git/?a=commit;h=3f862a082ec7d05a4957fc8104eaf7df7033f779
Author: Louis Lenders <xerox.xerox2000x at gmail.com>
Date: Wed May 13 10:06:09 2020 +0200
setupapi: Add stub for CM_Get_Device_Interface_Alias{A,W}.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=49147
Signed-off-by: Louis Lenders <xerox.xerox2000x at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
(cherry picked from commit f48b9700b8a5108b98747b8cc3b48b4c5b0de0dd)
Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>
---
dlls/cfgmgr32/cfgmgr32.spec | 4 ++--
dlls/setupapi/setupapi.spec | 4 ++--
dlls/setupapi/stubs.c | 20 ++++++++++++++++++++
3 files changed, 24 insertions(+), 4 deletions(-)
diff --git a/dlls/cfgmgr32/cfgmgr32.spec b/dlls/cfgmgr32/cfgmgr32.spec
index 20ede7b13d1..f9546036154 100644
--- a/dlls/cfgmgr32/cfgmgr32.spec
+++ b/dlls/cfgmgr32/cfgmgr32.spec
@@ -77,8 +77,8 @@
@ stub CM_Get_Device_ID_List_Size_ExW
@ stdcall CM_Get_Device_ID_Size(ptr ptr long) setupapi.CM_Get_Device_ID_Size
@ 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) setupapi.CM_Get_Device_Interface_AliasA
+@ stdcall CM_Get_Device_Interface_AliasW(wstr ptr ptr ptr long) setupapi.CM_Get_Device_Interface_AliasW
@ 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/setupapi.spec b/dlls/setupapi/setupapi.spec
index 325985dac6f..ef805f8deb3 100644
--- a/dlls/setupapi/setupapi.spec
+++ b/dlls/setupapi/setupapi.spec
@@ -87,8 +87,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 47dca6c1505..7eb0666f651 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.@)
*/
More information about the wine-cvs
mailing list