Fixed AROS typecasting

This commit is contained in:
llsth 2015-04-01 15:29:25 +02:00
parent 692fee9f3e
commit e47a10b10d
1 changed files with 2 additions and 2 deletions

View File

@ -80,14 +80,14 @@ bool AmigaPreferences::Save()
bool AmigaPreferences::SavePrefs(const char* name)
{
BPTR file = Open((char*)name, MODE_NEWFILE);
BPTR file = Open((CONST_STRPTR)name, MODE_NEWFILE);
if (!file) {
return false;
}
char *out = GetDescription();
FPuts(out, file);
FPuts(file, (CONST_STRPTR)out);
Close(file);
return (IoErr() == NULL);
}