Lines 438-444
static int read_setting(struct nt_list *
Link Here
|
438 |
struct wrap_device_setting *setting; |
438 |
struct wrap_device_setting *setting; |
439 |
mutex_lock(&loader_mutex); |
439 |
mutex_lock(&loader_mutex); |
440 |
nt_list_for_each_entry(setting, setting_list, list) { |
440 |
nt_list_for_each_entry(setting, setting_list, list) { |
441 |
if (strnicmp(keyname, setting->name, length) == 0) { |
441 |
if (strncasecmp(keyname, setting->name, length) == 0) { |
442 |
TRACE2("setting %s='%s'", keyname, setting->value); |
442 |
TRACE2("setting %s='%s'", keyname, setting->value); |
443 |
mutex_unlock(&loader_mutex); |
443 |
mutex_unlock(&loader_mutex); |
444 |
*param = ndis_encode_setting(setting, type); |
444 |
*param = ndis_encode_setting(setting, type); |
Lines 502-508
wstdcall void WIN_FUNC(NdisWriteConfigur
Link Here
|
502 |
|
502 |
|
503 |
mutex_lock(&loader_mutex); |
503 |
mutex_lock(&loader_mutex); |
504 |
nt_list_for_each_entry(setting, &nmb->wnd->wd->settings, list) { |
504 |
nt_list_for_each_entry(setting, &nmb->wnd->wd->settings, list) { |
505 |
if (strnicmp(keyname, setting->name, ansi.length) == 0) { |
505 |
if (strncasecmp(keyname, setting->name, ansi.length) == 0) { |
506 |
mutex_unlock(&loader_mutex); |
506 |
mutex_unlock(&loader_mutex); |
507 |
if (ndis_decode_setting(setting, param)) |
507 |
if (ndis_decode_setting(setting, param)) |
508 |
*status = NDIS_STATUS_FAILURE; |
508 |
*status = NDIS_STATUS_FAILURE; |