[PATCH] setupapi: Add CM_Get_Sibling_Ex stub.
Andrey Gusev
andrey.goosev at gmail.com
Fri Jan 27 07:19:44 CST 2017
Signed-off-by: Andrey Gusev <andrey.goosev at gmail.com>
---
dlls/cfgmgr32/cfgmgr32.spec | 2 +-
dlls/setupapi/setupapi.spec | 2 +-
dlls/setupapi/stubs.c | 10 ++++++++++
include/cfgmgr32.h | 1 +
4 files changed, 13 insertions(+), 2 deletions(-)
diff --git a/dlls/cfgmgr32/cfgmgr32.spec b/dlls/cfgmgr32/cfgmgr32.spec
index 14c9cc5..3ad0bbe 100644
--- a/dlls/cfgmgr32/cfgmgr32.spec
+++ b/dlls/cfgmgr32/cfgmgr32.spec
@@ -113,7 +113,7 @@
@ stub CM_Get_Res_Des_Data_Size
@ stub CM_Get_Res_Des_Data_Size_Ex
@ stub CM_Get_Sibling
-@ stub CM_Get_Sibling_Ex
+@ 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
@ stub CM_Intersect_Range_List
diff --git a/dlls/setupapi/setupapi.spec b/dlls/setupapi/setupapi.spec
index 5d5b8b2..b358516 100644
--- a/dlls/setupapi/setupapi.spec
+++ b/dlls/setupapi/setupapi.spec
@@ -124,7 +124,7 @@
@ stub CM_Get_Res_Des_Data_Size
@ stub CM_Get_Res_Des_Data_Size_Ex
@ stub CM_Get_Sibling
-@ stub CM_Get_Sibling_Ex
+@ stdcall CM_Get_Sibling_Ex(ptr long long ptr)
@ stdcall CM_Get_Version()
@ stub CM_Get_Version_Ex
@ stub CM_Intersect_Range_List
diff --git a/dlls/setupapi/stubs.c b/dlls/setupapi/stubs.c
index a738eec..9ea23b7 100644
--- a/dlls/setupapi/stubs.c
+++ b/dlls/setupapi/stubs.c
@@ -499,6 +499,16 @@ CONFIGRET WINAPI CM_Get_Class_Registry_PropertyW(LPGUID class, ULONG prop, PULON
return CR_FAILURE;
}
+/***********************************************************************
+ * CM_Get_Sibling_Ex (SETUPAPI.@)
+ */
+CONFIGRET WINAPI CM_Get_Sibling_Ex(
+ PDEVINST pdnDevInst, DEVINST DevInst, ULONG ulFlags, HMACHINE hMachine)
+{
+ FIXME("%p 0x%08x 0x%08x %p: stub\n", pdnDevInst, DevInst, ulFlags, hMachine);
+ return CR_FAILURE;
+}
+
CONFIGRET WINAPI CM_Reenumerate_DevNode(DEVINST dnDevInst, ULONG ulFlags)
{
FIXME("0x%08x 0x%08x: stub\n", dnDevInst, ulFlags);
diff --git a/include/cfgmgr32.h b/include/cfgmgr32.h
index 8573067..fb6698e 100644
--- a/include/cfgmgr32.h
+++ b/include/cfgmgr32.h
@@ -211,6 +211,7 @@ CMAPI CONFIGRET WINAPI CM_Open_DevNode_Key(DEVINST dnDevInst, REGSAM access, ULO
REGDISPOSITION disposition, PHKEY phkDevice, ULONG ulFlags);
CMAPI CONFIGRET WINAPI CM_Get_Child(PDEVINST pdnDevInst, DEVINST dnDevInst, ULONG ulFlags);
CMAPI CONFIGRET WINAPI CM_Get_Child_Ex(PDEVINST pdnDevInst, DEVINST dnDevInst, ULONG ulFlags, HMACHINE hMachine);
+CMAPI CONFIGRET WINAPI CM_Get_Sibling_Ex(PDEVINST pdnDevInst, DEVINST DevInst, ULONG ulFlags, HMACHINE hMachine);
#ifdef __cplusplus
}
--
2.7.4
More information about the wine-patches
mailing list