PackageInstaller: Use newly created BString::IEndsWith()
...to find files with .pdb extension Code was subtly wrong in 2 cases: 1) File that ended in pdb but not an extension e.g. filepdb erroneously included 2) File that ended in .PDB or other case erroneously skipped
This commit is contained in:
@@ -361,8 +361,8 @@ UninstallView::_ReloadAppList()
|
|||||||
if (iter.GetNodeRef(&ref) != B_OK)
|
if (iter.GetNodeRef(&ref) != B_OK)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
size_t len = strnlen(filename, B_FILE_NAME_LENGTH);
|
BString filenameString(filename);
|
||||||
if (len < 3 || strncmp(filename + (len - 3), "pdb", 3) != 0) {
|
if (!filenameString.IEndsWith(".pdb")) {
|
||||||
printf("Ignoring non-package '%s'\n", filename);
|
printf("Ignoring non-package '%s'\n", filename);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user