From d3d7a7f34ba7db44bb54f84a43d64b381bc95224 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herv=C3=A9=20Poussineau?= Date: Sun, 17 Jul 2005 14:09:57 +0000 Subject: [PATCH] Return CR_FAILURE when the function is not implemented Call the right *_Ex function in CM_Get_Child and CM_Get_Parent svn path=/trunk/; revision=16620 --- reactos/lib/setupapi/cfgmgr.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/reactos/lib/setupapi/cfgmgr.c b/reactos/lib/setupapi/cfgmgr.c index afd02bc5be6..bcd3bffaf98 100644 --- a/reactos/lib/setupapi/cfgmgr.c +++ b/reactos/lib/setupapi/cfgmgr.c @@ -241,7 +241,7 @@ CONFIGRET WINAPI CM_Get_Child( PDEVINST pdnDevInst, DEVINST dnDevInst, ULONG ulFlags) { TRACE("%p %p %lx\n", pdnDevInst, dnDevInst, ulFlags); - return CM_Get_Sibling_Ex(pdnDevInst, dnDevInst, ulFlags, NULL); + return CM_Get_Child_Ex(pdnDevInst, dnDevInst, ulFlags, NULL); } @@ -252,7 +252,7 @@ CONFIGRET WINAPI CM_Get_Child_Ex( PDEVINST pdnDevInst, DEVINST dnDevInst, ULONG ulFlags, HMACHINE hMachine) { FIXME("%p %lx %lx %lx\n", pdnDevInst, dnDevInst, ulFlags, hMachine); - return CR_SUCCESS; + return CR_FAILURE; } @@ -290,7 +290,7 @@ CONFIGRET WINAPI CM_Get_Device_ID_ExA( FIXME("%lx %p %ld %ld %lx\n", dnDevInst, Buffer, BufferLen, ulFlags, hMachine); - return CR_SUCCESS; + return CR_FAILURE; } @@ -525,7 +525,7 @@ CONFIGRET WINAPI CM_Get_Parent( PDEVINST pdnDevInst, DEVINST dnDevInst, ULONG ulFlags) { TRACE("%p %p %lx\n", pdnDevInst, dnDevInst, ulFlags); - return CM_Get_Sibling_Ex(pdnDevInst, dnDevInst, ulFlags, NULL); + return CM_Get_Parent_Ex(pdnDevInst, dnDevInst, ulFlags, NULL); } @@ -536,7 +536,7 @@ CONFIGRET WINAPI CM_Get_Parent_Ex( PDEVINST pdnDevInst, DEVINST dnDevInst, ULONG ulFlags, HMACHINE hMachine) { FIXME("%p %lx %lx %lx\n", pdnDevInst, dnDevInst, ulFlags, hMachine); - return CR_SUCCESS; + return CR_FAILURE; } @@ -558,7 +558,7 @@ CONFIGRET WINAPI CM_Get_Sibling_Ex( PDEVINST pdnDevInst, DEVINST dnDevInst, ULONG ulFlags, HMACHINE hMachine) { FIXME("%p %lx %lx %lx\n", pdnDevInst, dnDevInst, ulFlags, hMachine); - return CR_SUCCESS; + return CR_FAILURE; }