From: Zhiyi Zhang zzhang@codeweavers.com
--- dlls/ntdll/rtl.c | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-)
diff --git a/dlls/ntdll/rtl.c b/dlls/ntdll/rtl.c index 7f5282e8b97..1828b860531 100644 --- a/dlls/ntdll/rtl.c +++ b/dlls/ntdll/rtl.c @@ -702,10 +702,18 @@ void * WINAPI RtlGetElementGenericTable(RTL_GENERIC_TABLE *table, ULONG index) /****************************************************************************** * RtlLookupElementGenericTable [NTDLL.@] */ -void * WINAPI RtlLookupElementGenericTable(RTL_GENERIC_TABLE *table, void *buffer) +void * WINAPI RtlLookupElementGenericTable(RTL_GENERIC_TABLE *table, void *value) { - FIXME("(%p, %p) stub!\n", table, buffer); - return NULL; + RTL_SPLAY_LINKS *child; + + TRACE("(%p, %p)\n", table, value); + + child = rtl_splay_find(table, value); + if (!child) + return FALSE; + + table->TableRoot = RtlSplay(child); + return get_data_from_splay_links(child); }
/******************************************************************************