diff --git a/Source/Core/DolphinWX/src/GameListCtrl.cpp b/Source/Core/DolphinWX/src/GameListCtrl.cpp index 8aad0d7b4b..6e310ebd83 100644 --- a/Source/Core/DolphinWX/src/GameListCtrl.cpp +++ b/Source/Core/DolphinWX/src/GameListCtrl.cpp @@ -286,9 +286,9 @@ CGameListCtrl::ScanForISOs() SplitPath(rFilenames[i], NULL, &FileName, NULL); wxString msg; - wxString tempstring; - tempstring = wxString::FromAscii("Scanning %s"); - msg.Printf(tempstring, FileName.c_str()); + char tempstring[128]; + sprintf(tempstring,"Scanning %s", FileName.c_str()); + msg = wxString::FromAscii(tempstring); bool Cont = dialog.Update(i, msg); diff --git a/Source/Core/DolphinWX/src/PluginManager.cpp b/Source/Core/DolphinWX/src/PluginManager.cpp index bd9f7cd6e1..4bb7fc1f5a 100644 --- a/Source/Core/DolphinWX/src/PluginManager.cpp +++ b/Source/Core/DolphinWX/src/PluginManager.cpp @@ -84,9 +84,9 @@ CPluginManager::ScanForPlugins(wxWindow* _wxWindow) } wxString msg; - wxString temp; - temp = wxString::FromAscii("Scanning %s"); - msg.Printf(temp, FileName.c_str()); + char temp[128]; + sprintf(temp,"Scanning %s", FileName.c_str()); + msg = wxString::FromAscii(temp); bool Cont = dialog.Update((int)i, msg); if (!Cont)