diff --git a/programs/regapi/regapi.c b/programs/regapi/regapi.c index 2d68227eb7..cf3292a49d 100644 --- a/programs/regapi/regapi.c +++ b/programs/regapi/regapi.c @@ -229,7 +229,7 @@ HKEY getDataType(LPSTR *lpValue) for (; counter < LAST_TYPE_MAP; counter++) { LONG len = strlen(typeMap[counter].mask); - if ( lstrncmpi( *lpValue, typeMap[counter].mask, len) == IDENTICAL) + if ( strncasecmp( *lpValue, typeMap[counter].mask, len) == IDENTICAL) { /* * We found it, modify the value's pointer in order to skip the data