datadevice: fix wrong param (#9370)

Reason: look at the setReceive parameters and also at the next line(tries to narrow)
This commit is contained in:
Honkazel
2025-02-09 02:00:55 +05:00
committed by GitHub
parent feb8ad48f0
commit 8e10ddb592

View File

@@ -39,7 +39,7 @@ CWLDataOfferResource::CWLDataOfferResource(SP<CWlDataOffer> resource_, SP<IDataS
accepted = mime;
});
resource->setReceive([this](CWlDataOffer* r, const char* mime, uint32_t fd) {
resource->setReceive([this](CWlDataOffer* r, const char* mime, int fd) {
CFileDescriptor sendFd{fd};
if (!source) {
LOGM(WARN, "Possible bug: Receive on an offer w/o a source");