From 2f137293b9d14c1c41989dd8dc4605e6161e2445 Mon Sep 17 00:00:00 2001 From: Maschell Date: Sat, 23 Mar 2024 19:12:11 +0100 Subject: [PATCH] Use api.h in PluginData destructor --- source/PluginData.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/PluginData.cpp b/source/PluginData.cpp index 6c0acfa..fc965cc 100644 --- a/source/PluginData.cpp +++ b/source/PluginData.cpp @@ -16,8 +16,8 @@ ****************************************************************************/ #include "wups_backend/PluginData.h" -#include "imports.h" #include "logger.h" +#include "wups_backend/api.h" #include using namespace WUPSBackend; @@ -28,7 +28,7 @@ PluginData::PluginData(uint32_t handle) { PluginData::~PluginData() { if (handle != 0) { - if (WUPSDeletePluginData(&handle, 1) != PLUGIN_BACKEND_API_ERROR_NONE) { + if (WUPSBackend_DeletePluginData(&handle, 1) != PLUGIN_BACKEND_API_ERROR_NONE) { DEBUG_FUNCTION_LINE_ERR("Failed to delete plugin data"); } }