mirror of
https://github.com/holub/mame
synced 2025-04-24 17:30:55 +03:00
Incorporated cleanups requested by Vas Crabb
This commit is contained in:
parent
4ddfc6a6e4
commit
7509a56dc0
@ -568,7 +568,7 @@ void running_machine::set_saveload_filename(const char *filename)
|
||||
// take into account the statename option
|
||||
const char *stateopt = options().state_name();
|
||||
std::string statename = get_statename(stateopt);
|
||||
m_saveload_pending_file = string_format("%s%s%s.sta", statename.c_str(), PATH_SEPARATOR, filename);
|
||||
m_saveload_pending_file = string_format("%s%s%s.sta", statename, PATH_SEPARATOR, filename);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -381,7 +381,7 @@ std::unique_ptr<osd::directory::entry> osd_stat(const std::string &path)
|
||||
|
||||
// create an osd::directory::entry; be sure to make sure that the caller can
|
||||
// free all resources by just freeing the resulting osd::directory::entry
|
||||
osd::directory::entry *result = (osd::directory::entry *) operator new(sizeof(*result) + path.length() + 1);
|
||||
osd::directory::entry *result = (osd::directory::entry *) ::operator new(sizeof(*result) + path.length() + 1);
|
||||
if (!result)
|
||||
return nullptr;
|
||||
strcpy(((char *) result) + sizeof(*result), path.c_str());
|
||||
|
Loading…
Reference in New Issue
Block a user