| 160 | return FALSE; |
| 161 | } |
| 162 | BOOL CompareStringList(PSTRING_LIST listA, PSTRING_LIST listB) |
| 163 | { |
| 164 | if (listA == listB) |
| 165 | { |
| 166 | return TRUE; |
| 167 | } |
| 168 | else if (listA == NULL || listB == NULL) |
| 169 | { |
| 170 | return FALSE; |
| 171 | } |
| 172 | else if (listA->Count != listB->Count) |
| 173 | { |
| 174 | return FALSE; |
| 175 | } |
| 176 | else |
| 177 | { |
| 178 | for (ULONG i = 0; i < listA->Count; i++) |
| 179 | { |
| 180 | if (listA->IgnoreCase && listB->IgnoreCase ? StrCmpIW(listA->Values[i], listB->Values[i]) : StrCmpW(listA->Values[i], listB->Values[i])) return FALSE; |
| 181 | } |
| 182 | |
| 183 | return TRUE; |
| 184 | } |
| 185 | } |