Commit 595e8d9a authored by Nicolas Fella's avatar Nicolas Fella
Browse files

Add Macro for MinGW and fix GUID Macro Fix for Windows building

parent 4c8c2b3d
Pipeline #2959 passed with stage
in 20 minutes and 44 seconds
......@@ -263,9 +263,11 @@ bool SystemvolumePlugin::sendSinkList()
name = QString::fromWCharArray(deviceProperty.pwszVal);
//PropVariantClear(&deviceProperty);
#ifndef __MINGW32__
deviceProperties->GetValue(PKEY_Device_DeviceDesc, &deviceProperty);
desc = QString::fromWCharArray(deviceProperty.pwszVal);
//PropVariantClear(&deviceProperty);
#endif
QJsonObject sinkObject;
sinkObject.insert("name", name);
......
......@@ -30,6 +30,10 @@
#include <mmdeviceapi.h>
#include <endpointvolume.h>
#ifdef __MINGW32__
#include <initguid.h>
#endif
#define PACKET_TYPE_SYSTEMVOLUME QStringLiteral("kdeconnect.systemvolume")
#define PACKET_TYPE_SYSTEMVOLUME_REQUEST QStringLiteral("kdeconnect.systemvolume.request")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment