[haiku-bugs] Re: [Haiku] #6305: Problem with ext3 volumes

  • From: "korli" <trac@xxxxxxxxxxxx>
  • Date: Thu, 09 Sep 2010 13:47:21 -0000

#6305: Problem with ext3 volumes
--------------------------------+-------------------------------------------
  Reporter:  jackburton         |         Owner:  korli         
      Type:  bug                |        Status:  assigned      
  Priority:  normal             |     Milestone:  R1            
 Component:  File Systems/ext2  |       Version:  R1/Development
Resolution:                     |      Keywords:                
Blocked By:                     |   Has a Patch:  1             
  Platform:  All                |      Blocking:                
--------------------------------+-------------------------------------------

Comment (by korli):

 Looking again at the stacktrace it looks the same as in #4037

 I had a look at BContainerWindow::AddMimeTypesToMenu(BMenu *menu), to me
 it looks like it forgets to check the BPath sanity.

 Could you try something like this ?

 {{{
         // Add MIME type in case we're a default query type window
         if (TargetModel() != NULL) {
                 BPath path;
                 TargetModel()->GetPath(&path);
                 if (path.InitCheck() == B_OK
                         && strstr(path.Path(), "/" kQueryTemplates "/") !=
 NULL) {
                         // demangle MIME type name
                         BString name(TargetModel()->Name());
                         name.ReplaceFirst('_', '/');

                         PoseView()->AddMimeType(name.String());
                 }
         }
 }}}

-- 
Ticket URL: <http://dev.haiku-os.org/ticket/6305#comment:15>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: