Fix bug with string formatting
This commit is contained in:
parent
7646a36dc9
commit
9fb30cc7b4
|
@ -26,6 +26,7 @@ cmake-build*/
|
|||
*.pro.user*
|
||||
*.orig
|
||||
*.pdb
|
||||
*.ilk
|
||||
.DS_Store
|
||||
Makefile
|
||||
Makefile.*
|
||||
|
|
|
@ -208,7 +208,7 @@ bool pluginload(const char* pluginName, bool loadall)
|
|||
gLoadingPlugin.hPlugin = LoadLibraryW(pluginPath.c_str()); //load the plugin library
|
||||
if(!gLoadingPlugin.hPlugin)
|
||||
{
|
||||
String error = StringUtils::sprintf("%s (%s)", normalizedName.c_str(), stringformatinline(StringUtils::sprintf("{winerror@%x}", GetLastError()).c_str()));
|
||||
String error = StringUtils::sprintf("%s (%s)", normalizedName.c_str(), stringformatinline(StringUtils::sprintf("{winerror@%x}", GetLastError())).c_str());
|
||||
dprintf(QT_TRANSLATE_NOOP("DBG", "[PLUGIN] Failed to load plugin: %s\n"), error.c_str());
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue