mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
Fix changing disc on win32, (my dumb mistake, strlen doesnt include \0)
make changing disc a little less ugly Fixes issue 2114 git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4939 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -556,12 +556,8 @@ void CFrame::DoOpen(bool Boot)
|
||||
}
|
||||
else
|
||||
{
|
||||
if (!fileChosen)
|
||||
path = wxT("");
|
||||
// temp is deleted by changediscCallback
|
||||
char * temp = new char[strlen(path.mb_str())];
|
||||
strncpy(temp, path.mb_str(), strlen(path.mb_str()));
|
||||
DVDInterface::ChangeDisc(temp);
|
||||
strncpy(newDiscpath, path.mb_str(), strlen(path.mb_str())+1);
|
||||
DVDInterface::ChangeDisc(newDiscpath);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user