Commit 42bf7668 authored by Paul Gofman's avatar Paul Gofman Committed by Alexandre Julliard

nsiproxy.sys: Update interface table only if find_entry_from_{luid|index} fails.

parent e55515bf
......@@ -495,9 +495,11 @@ static NTSTATUS ifinfo_get_all_parameters( const void *key, UINT key_size, void
pthread_mutex_lock( &if_list_lock );
update_if_table();
entry = find_entry_from_luid( (const NET_LUID *)key );
if (!(entry = find_entry_from_luid( (const NET_LUID *)key )))
{
update_if_table();
entry = find_entry_from_luid( (const NET_LUID *)key );
}
if (entry)
{
ifinfo_fill_entry( entry, NULL, rw_data, dynamic_data, static_data );
......@@ -557,9 +559,11 @@ static NTSTATUS ifinfo_get_parameter( const void *key, UINT key_size, UINT param
pthread_mutex_lock( &if_list_lock );
update_if_table();
entry = find_entry_from_luid( (const NET_LUID *)key );
if (!(entry = find_entry_from_luid( (const NET_LUID *)key )))
{
update_if_table();
entry = find_entry_from_luid( (const NET_LUID *)key );
}
if (entry)
{
switch (param_type)
......@@ -591,9 +595,11 @@ static NTSTATUS index_luid_get_parameter( const void *key, UINT key_size, UINT p
pthread_mutex_lock( &if_list_lock );
update_if_table();
entry = find_entry_from_index( *(UINT *)key );
if (!(entry = find_entry_from_index( *(UINT *)key )))
{
update_if_table();
entry = find_entry_from_index( *(UINT *)key );
}
if (entry)
{
*(NET_LUID *)data = entry->if_luid;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment