Skip to content

Commit

Permalink
Merge pull request #4325 from maxpat78/master
Browse files Browse the repository at this point in the history
Regression fix in dos_programs.cpp
  • Loading branch information
joncampbell123 committed Jul 17, 2023
2 parents 28bb201 + 21b0032 commit b717bbb
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/dos/dos_programs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7741,6 +7741,8 @@ class TITLE : public Program {
}
};

bool CodePageGuestToHostUTF8(char *d/*CROSS_LEN*/,const char *s/*CROSS_LEN*/);

void TITLE::Run()
{
// Hack To allow long commandlines
Expand All @@ -7751,8 +7753,13 @@ void TITLE::Run()
PrintUsage();
return;
}
char *args=(char *)cmd->GetRawCmdline().c_str();
dosbox_title=trim(args);
char *args=trim((char *)cmd->GetRawCmdline().c_str());
char title[4096];
if(CodePageGuestToHostUTF8(title, args)) {
dosbox_title=title;
} else {
dosbox_title=args;
}
SetVal("dosbox", "title", dosbox_title);
GFX_SetTitle(-1,-1,-1,false);
}
Expand Down

0 comments on commit b717bbb

Please sign in to comment.