It's important to add the ref ot the message also when we are reporting a
negative. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26933 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -180,6 +180,7 @@ Grepper::_GrepperThread()
|
||||
tempFile.SetTo(fileName);
|
||||
|
||||
while (!fMustQuit && fIterator->GetNextName(fileName)) {
|
||||
|
||||
message.MakeEmpty();
|
||||
message.what = MSG_REPORT_FILE_NAME;
|
||||
message.AddString("filename", fileName);
|
||||
@@ -190,14 +191,15 @@ Grepper::_GrepperThread()
|
||||
message.AddString("filename", fileName);
|
||||
|
||||
BEntry entry(fileName);
|
||||
entry_ref ref;
|
||||
entry.GetRef(&ref);
|
||||
message.AddRef("ref", &ref);
|
||||
|
||||
if (!entry.Exists()) {
|
||||
if (fIterator->NotifyNegatives())
|
||||
fTarget.SendMessage(&message);
|
||||
continue;
|
||||
}
|
||||
entry_ref ref;
|
||||
entry.GetRef(&ref);
|
||||
message.AddRef("ref", &ref);
|
||||
|
||||
if (!_EscapeSpecialChars(fileName, B_PATH_NAME_LENGTH)) {
|
||||
sprintf(tempString, "%s: Not enough room to escape the filename.",
|
||||
|
||||
Reference in New Issue
Block a user