Browse Source

Fix External Client garbage-strings

Adam Johnson 11 years ago
parent
commit
19da80f31b
  1. 6
      Sources/Plasma/PubUtilLib/plNetClient/plNetCliAgeJoiner.cpp

6
Sources/Plasma/PubUtilLib/plNetClient/plNetCliAgeJoiner.cpp

@ -259,11 +259,11 @@ void plNCAgeJoiner::ExecNextOp () {
LogMsg(kLogPerf, L"AgeJoiner: Exec:kLoadAge"); LogMsg(kLogPerf, L"AgeJoiner: Exec:kLoadAge");
// Start progress bar // Start progress bar
char str[128]; plString str;
#ifndef PLASMA_EXTERNAL_RELEASE #ifndef PLASMA_EXTERNAL_RELEASE
snprintf(str, arrsize(str), "Loading age... %s", age.ageDatasetName); str = plString::Format("Loading age... %s", age.ageDatasetName);
#endif #endif
progressBar = plProgressMgr::GetInstance()->RegisterOperation(0, str, plProgressMgr::kNone, false, true); progressBar = plProgressMgr::GetInstance()->RegisterOperation(0, str.c_str(), plProgressMgr::kNone, false, true);
plDispatch::SetMsgRecieveCallback(IDispatchMsgReceiveCallback); plDispatch::SetMsgRecieveCallback(IDispatchMsgReceiveCallback);
((plResManager*)hsgResMgr::ResMgr())->SetProgressBarProc(IResMgrProgressBarCallback); ((plResManager*)hsgResMgr::ResMgr())->SetProgressBarProc(IResMgrProgressBarCallback);

Loading…
Cancel
Save