1
0
Fork 0

Fix bug with string formatting

This commit is contained in:
Duncan Ogilvie 2025-07-04 18:34:15 +02:00
parent 7646a36dc9
commit 9fb30cc7b4
2 changed files with 2 additions and 1 deletions

1
.gitignore vendored
View File

@ -26,6 +26,7 @@ cmake-build*/
*.pro.user*
*.orig
*.pdb
*.ilk
.DS_Store
Makefile
Makefile.*

View File

@ -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;
}