removed SEH

This commit is contained in:
jeefo 2015-07-05 18:53:58 +03:00
commit 6847bd34a6
6 changed files with 18 additions and 64 deletions

View file

@ -3002,7 +3002,7 @@ struct DirectoryTransition
DirectoryTransition (const String &oldName, const String &newName)
{
String rootPath;
rootPath->AssignFormat ("%s/addons/yapb/", GetModName ());
rootPath.AssignFormat ("%s/addons/yapb/", GetModName ());
this->oldName = rootPath + oldName;
this->newName = rootPath + newName;
@ -3010,8 +3010,8 @@ struct DirectoryTransition
void TryToRename (void)
{
if (access (oldName->GetBuffer (), 00) != -1)
rename (oldName->GetBuffer (), newName->GetBuffer ());
if (access (oldName.GetBuffer (), 00) != -1)
rename (oldName.GetBuffer (), newName.GetBuffer ());
}
};