Vijay Kiran Kamuju : setupapi: Add stub for CM_Get_Sibling.
Alexandre Julliard
julliard at winehq.org
Wed Feb 13 15:30:40 CST 2019
Module: wine
Branch: master
Commit: 01b8a795952b460189fc1fc91eff8e733c4e053d
URL: https://source.winehq.org/git/wine.git/?a=commit;h=01b8a795952b460189fc1fc91eff8e733c4e053d
Author: Vijay Kiran Kamuju <infyquest at gmail.com>
Date: Tue Feb 12 21:34:12 2019 +0100
setupapi: Add stub for CM_Get_Sibling.
Signed-off-by: Vijay Kiran Kamuju <infyquest at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
.../api-ms-win-devices-config-l1-1-0.spec | 2 +-
.../api-ms-win-devices-config-l1-1-1.spec | 2 +-
dlls/cfgmgr32/cfgmgr32.spec | 2 +-
dlls/setupapi/setupapi.spec | 2 +-
dlls/setupapi/stubs.c | 10 ++++++++++
include/cfgmgr32.h | 1 +
6 files changed, 15 insertions(+), 4 deletions(-)
diff --git a/dlls/api-ms-win-devices-config-l1-1-0/api-ms-win-devices-config-l1-1-0.spec b/dlls/api-ms-win-devices-config-l1-1-0/api-ms-win-devices-config-l1-1-0.spec
index fcd3aaa..6fe5ee3 100644
--- a/dlls/api-ms-win-devices-config-l1-1-0/api-ms-win-devices-config-l1-1-0.spec
+++ b/dlls/api-ms-win-devices-config-l1-1-0/api-ms-win-devices-config-l1-1-0.spec
@@ -21,7 +21,7 @@
@ stub CM_Get_Device_Interface_PropertyW
@ stub CM_Get_Device_Interface_Property_KeysW
@ stdcall CM_Get_Parent(ptr long long) setupapi.CM_Get_Parent
-@ stub CM_Get_Sibling
+@ stdcall CM_Get_Sibling(ptr long long) setupapi.CM_Get_Sibling
@ stdcall CM_Locate_DevNodeW(ptr wstr long) setupapi.CM_Locate_DevNodeW
@ stub CM_Open_Class_KeyW
@ stdcall CM_Open_DevNode_Key(long long long long ptr long) setupapi.CM_Open_DevNode_Key
diff --git a/dlls/api-ms-win-devices-config-l1-1-1/api-ms-win-devices-config-l1-1-1.spec b/dlls/api-ms-win-devices-config-l1-1-1/api-ms-win-devices-config-l1-1-1.spec
index ab2a8a9..33dad4e 100644
--- a/dlls/api-ms-win-devices-config-l1-1-1/api-ms-win-devices-config-l1-1-1.spec
+++ b/dlls/api-ms-win-devices-config-l1-1-1/api-ms-win-devices-config-l1-1-1.spec
@@ -21,7 +21,7 @@
@ stub CM_Get_Device_Interface_PropertyW
@ stub CM_Get_Device_Interface_Property_KeysW
@ stdcall CM_Get_Parent(ptr long long) setupapi.CM_Get_Parent
-@ stub CM_Get_Sibling
+@ stdcall CM_Get_Sibling(ptr long long) setupapi.CM_Get_Sibling
@ stdcall CM_Locate_DevNodeW(ptr wstr long) setupapi.CM_Locate_DevNodeW
@ stub CM_MapCrToWin32Err
@ stub CM_Open_Class_KeyW
diff --git a/dlls/cfgmgr32/cfgmgr32.spec b/dlls/cfgmgr32/cfgmgr32.spec
index 2438083d..20ede7b 100644
--- a/dlls/cfgmgr32/cfgmgr32.spec
+++ b/dlls/cfgmgr32/cfgmgr32.spec
@@ -113,7 +113,7 @@
@ stub CM_Get_Res_Des_Data_Ex
@ stub CM_Get_Res_Des_Data_Size
@ stub CM_Get_Res_Des_Data_Size_Ex
-@ stub CM_Get_Sibling
+@ stdcall CM_Get_Sibling(ptr long long) setupapi.CM_Get_Sibling
@ stdcall CM_Get_Sibling_Ex(ptr long long ptr) setupapi.CM_Get_Sibling_Ex
@ stdcall CM_Get_Version() setupapi.CM_Get_Version
@ stub CM_Get_Version_Ex
diff --git a/dlls/setupapi/setupapi.spec b/dlls/setupapi/setupapi.spec
index 844bb21..cea6dac 100644
--- a/dlls/setupapi/setupapi.spec
+++ b/dlls/setupapi/setupapi.spec
@@ -123,7 +123,7 @@
@ stub CM_Get_Res_Des_Data_Ex
@ stub CM_Get_Res_Des_Data_Size
@ stub CM_Get_Res_Des_Data_Size_Ex
-@ stub CM_Get_Sibling
+@ stdcall CM_Get_Sibling(ptr long long)
@ stdcall CM_Get_Sibling_Ex(ptr long long ptr)
@ stdcall CM_Get_Version()
@ stub CM_Get_Version_Ex
diff --git a/dlls/setupapi/stubs.c b/dlls/setupapi/stubs.c
index 61ce005..4994ca4 100644
--- a/dlls/setupapi/stubs.c
+++ b/dlls/setupapi/stubs.c
@@ -501,6 +501,16 @@ CONFIGRET WINAPI CM_Get_Class_Registry_PropertyW(LPGUID class, ULONG prop, PULON
}
/***********************************************************************
+ * CM_Get_Sibling (SETUPAPI.@)
+ */
+CONFIGRET WINAPI CM_Get_Sibling(
+ PDEVINST pdnDevInst, DEVINST DevInst, ULONG ulFlags)
+{
+ FIXME("%p 0x%08x 0x%08x: stub\n", pdnDevInst, DevInst, ulFlags);
+ return CR_FAILURE;
+}
+
+/***********************************************************************
* CM_Get_Sibling_Ex (SETUPAPI.@)
*/
CONFIGRET WINAPI CM_Get_Sibling_Ex(
diff --git a/include/cfgmgr32.h b/include/cfgmgr32.h
index b8def60..da09115 100644
--- a/include/cfgmgr32.h
+++ b/include/cfgmgr32.h
@@ -205,6 +205,7 @@ CMAPI CONFIGRET WINAPI CM_Get_Device_ID_List_ExW(PCWSTR,PWCHAR,ULONG,ULONG,HMACH
#define CM_Get_Device_ID_List_Ex WINELIB_NAME_AW(CM_Get_Device_ID_List_Ex)
CMAPI CONFIGRET WINAPI CM_Get_Device_ID_Size(PULONG,DEVINST,ULONG);
CMAPI CONFIGRET WINAPI CM_Get_Device_ID_Size_Ex(PULONG,DEVINST,ULONG,HMACHINE);
+CMAPI CONFIGRET WINAPI CM_Get_Sibling(PDEVINST,DEVINST,ULONG);
CMAPI CONFIGRET WINAPI CM_Get_Sibling_Ex(PDEVINST pdnDevInst, DEVINST DevInst, ULONG ulFlags, HMACHINE hMachine);
CMAPI WORD WINAPI CM_Get_Version(void);
CMAPI CONFIGRET WINAPI CM_Locate_DevNodeA(PDEVINST,DEVINSTID_A,ULONG);
More information about the wine-cvs
mailing list