From 351889184231d38ca774754fd7fd9dc56c482d33 Mon Sep 17 00:00:00 2001 From: Maschell Date: Sat, 27 Apr 2024 11:46:34 +0200 Subject: [PATCH] Adapt for latest libwupsbackend --- src/utils/TcpReceiver.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/utils/TcpReceiver.cpp b/src/utils/TcpReceiver.cpp index 0807f3e..99c7fbc 100644 --- a/src/utils/TcpReceiver.cpp +++ b/src/utils/TcpReceiver.cpp @@ -184,7 +184,8 @@ TcpReceiver::eLoadResults TcpReceiver::tryLoadRPX(uint8_t *data, uint32_t fileSi TcpReceiver::eLoadResults TcpReceiver::tryLoadWPS(uint8_t *data, uint32_t fileSize) { if (data[0x7] == 0xCA && data[0x8] == 0xFE && data[0x9] == 0x50 && data[0xA] == 0x4C) { PluginBackendApiErrorType err; - auto newContainerOpt = WUPSBackend::PluginUtils::getPluginForBuffer((char *) data, fileSize, err); + PluginBackendPluginParseError parseErr; + auto newContainerOpt = WUPSBackend::PluginUtils::getPluginForBuffer((char *) data, fileSize, err, parseErr); if (newContainerOpt) { auto pluginList = WUPSBackend::PluginUtils::getLoadedPlugins(err); if (err != PLUGIN_BACKEND_API_ERROR_NONE) {