goto _cleanup;\r
}\r
\r
- if (!(wcsncmp(sk_name, t, cch))) {\r
+ /* FIX ME - This is not what we intended to do. We want\r
+ * a case sensitive match but we are running into a problem \r
+ * because of "HKLM\SOFTWARE" and "HKCU\Software"\r
+ */\r
+ if (!(wcsnicmp(sk_name, t, cch))) {\r
/* bingo! ?? */\r
if (cch < KCONF_MAXCCH_NAME &&\r
(sk_name[cch] == L'\0' ||\r
if (l != ERROR_SUCCESS)\r
break;\r
\r
- if (!(wcsncmp(sk_name, t, cch))) {\r
+ /* FIX ME - This is not what we intended to do. We want\r
+ * a case sensitive match but we are running into a problem \r
+ * because of "HKLM\SOFTWARE" and "HKCU\Software"\r
+ */\r
+ if (!(wcsnicmp(sk_name, t, cch))) {\r
/* bingo! ?? */\r
if (sk_name[cch] == L'\0' ||\r
sk_name[cch] == L'~') {\r
EnterCriticalSection(&cs_conf_global);\r
c = TFIRSTCHILD(p);\r
while(c) {\r
- if(c->name && !wcscmp(c->name, buf))\r
+ /* FIX ME - This is not what we intended to do. We want\r
+ * a case sensitive match but we are running into a problem \r
+ * because of "HKLM\SOFTWARE" and "HKCU\Software"\r
+ */\r
+ if(c->name && !wcsicmp(c->name, buf))\r
break;\r
\r
c = LNEXT(c);\r
\r
if(c->schema && khc_is_schema_handle(conf)) {\r
for(i=0;i<c->nSchema;i++) {\r
- if(c->schema[i].type == KC_STRING && !wcscmp(value, c->schema[i].name)) {\r
+ /* FIX ME - This is not what we intended to do. We want\r
+ * a case sensitive match but we are running into a problem \r
+ * because of "HKLM\SOFTWARE" and "HKCU\Software"\r
+ */\r
+ if(c->schema[i].type == KC_STRING && !wcsicmp(value, c->schema[i].name)) {\r
/* found it */\r
size_t cbsize = 0;\r
\r
\r
if(c->schema && khc_is_schema_handle(conf)) {\r
for(i=0;i<c->nSchema;i++) {\r
- if(c->schema[i].type == KC_INT32 && !wcscmp(value, c->schema[i].name)) {\r
+ /* FIX ME - This is not what we intended to do. We want\r
+ * a case sensitive match but we are running into a problem \r
+ * because of "HKLM\SOFTWARE" and "HKCU\Software"\r
+ */\r
+ if(c->schema[i].type == KC_INT32 && !wcsicmp(value, c->schema[i].name)) {\r
*buf = (khm_int32) c->schema[i].value;\r
rv = KHM_ERROR_SUCCESS;\r
goto _exit;\r
\r
if(c->schema && khc_is_schema_handle(conf)) {\r
for(i=0;i<c->nSchema;i++) {\r
- if(c->schema[i].type == KC_INT64 && !wcscmp(value, c->schema[i].name)) {\r
+ /* FIX ME - This is not what we intended to do. We want\r
+ * a case sensitive match but we are running into a problem \r
+ * because of "HKLM\SOFTWARE" and "HKCU\Software"\r
+ */\r
+ if(c->schema[i].type == KC_INT64 && !wcsicmp(value, c->schema[i].name)) {\r
*buf = (khm_int64) c->schema[i].value;\r
rv = KHM_ERROR_SUCCESS;\r
goto _exit;\r
int i;\r
\r
for(i=0; i<c->nSchema; i++) {\r
- if(!wcscmp(c->schema[i].name, value)) {\r
+ /* FIX ME - This is not what we intended to do. We want\r
+ * a case sensitive match but we are running into a problem \r
+ * because of "HKLM\SOFTWARE" and "HKCU\Software"\r
+ */\r
+ if(!wcsicmp(c->schema[i].name, value)) {\r
return c->schema[i].type;\r
}\r
}\r
\r
if(c->schema) {\r
for(i=0; i<c->nSchema; i++) {\r
- if(!wcscmp(c->schema[i].name, value)) {\r
+ /* FIX ME - This is not what we intended to do. We want\r
+ * a case sensitive match but we are running into a problem \r
+ * because of "HKLM\SOFTWARE" and "HKCU\Software"\r
+ */\r
+ if(!wcsicmp(c->schema[i].name, value)) {\r
rv |= KCONF_FLAG_SCHEMA;\r
break;\r
}\r