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:
parent
cc04d41c87
commit
e4e6315ff4
@ -361,8 +361,8 @@ UninstallView::_ReloadAppList()
|
||||
if (iter.GetNodeRef(&ref) != B_OK)
|
||||
continue;
|
||||
|
||||
size_t len = strnlen(filename, B_FILE_NAME_LENGTH);
|
||||
if (len < 3 || strncmp(filename + (len - 3), "pdb", 3) != 0) {
|
||||
BString filenameString(filename);
|
||||
if (!filenameString.IEndsWith(".pdb")) {
|
||||
printf("Ignoring non-package '%s'\n", filename);
|
||||
continue;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user