keep file name when opening

This commit is contained in:
Kelvin Sherlock 2013-02-25 20:40:57 -05:00
parent 95f41785eb
commit a9553a11b5
1 changed files with 2 additions and 1 deletions

View File

@ -68,6 +68,7 @@ namespace MPW
sname = ToolBox::ReadCString(name, true);
std::string xname = sname;
Log(" open(%s, %04x)\n", sname.c_str(), f.flags);
@ -104,7 +105,7 @@ namespace MPW
if (f.flags & kO_RSRC) f.flags |= kO_BINARY;
auto &e = OS::Internal::FDEntry::allocate(fd);
auto &e = OS::Internal::FDEntry::allocate(fd, std::move(xname));
e.text = !(f.flags & kO_BINARY);
e.resource = f.flags & kO_RSRC;
}