Vijay Kiran Kamuju : ntdll: Implement RtlNumberGenericTableElements.

Alexandre Julliard julliard at winehq.org
Thu Dec 2 15:30:16 CST 2021


Module: wine
Branch: master
Commit: df678a4ec6190223c28d9d3d646fb17b74e76c60
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=df678a4ec6190223c28d9d3d646fb17b74e76c60

Author: Vijay Kiran Kamuju <infyquest at gmail.com>
Date:   Tue Nov 30 20:15:56 2021 -0700

ntdll: Implement RtlNumberGenericTableElements.

Signed-off-by: Vijay Kiran Kamuju <infyquest at gmail.com>
Signed-off-by: Alex Henrie <alexhenrie24 at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/ntdll/rtl.c    | 4 ++--
 include/ddk/ntddk.h | 1 +
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/dlls/ntdll/rtl.c b/dlls/ntdll/rtl.c
index f77e4058378..3f05a2ad7d4 100644
--- a/dlls/ntdll/rtl.c
+++ b/dlls/ntdll/rtl.c
@@ -460,8 +460,8 @@ void * WINAPI RtlEnumerateGenericTableWithoutSplaying(RTL_GENERIC_TABLE *table,
  */
 ULONG WINAPI RtlNumberGenericTableElements(RTL_GENERIC_TABLE *table)
 {
-    FIXME("(%p) stub!\n", table);
-    return 0;
+    TRACE("(%p)\n", table);
+    return table->NumberGenericTableElements;
 }
 
 /******************************************************************************
diff --git a/include/ddk/ntddk.h b/include/ddk/ntddk.h
index 3a1d68b1fa8..569552bcad0 100644
--- a/include/ddk/ntddk.h
+++ b/include/ddk/ntddk.h
@@ -268,5 +268,6 @@ NTSTATUS  WINAPI PsSetLoadImageNotifyRoutine(PLOAD_IMAGE_NOTIFY_ROUTINE);
 void      WINAPI RtlInitializeGenericTable(PRTL_GENERIC_TABLE,PRTL_GENERIC_COMPARE_ROUTINE,PRTL_GENERIC_ALLOCATE_ROUTINE,PRTL_GENERIC_FREE_ROUTINE,void *);
 void      WINAPI RtlInitializeGenericTableAvl(PRTL_AVL_TABLE,PRTL_AVL_COMPARE_ROUTINE,PRTL_AVL_ALLOCATE_ROUTINE, PRTL_AVL_FREE_ROUTINE,void *);
 void      WINAPI RtlInsertElementGenericTableAvl(PRTL_AVL_TABLE,void *,ULONG,BOOL*);
+ULONG     WINAPI RtlNumberGenericTableElements(PRTL_GENERIC_TABLE);
 
 #endif




More information about the wine-cvs mailing list