From: Lars Op den Kamp Date: Fri, 8 Mar 2013 12:31:00 +0000 (+0100) Subject: LibCecSharp: fixed return value of GetActiveDevices(). issue #131 X-Git-Tag: upstream/2.2.0~1^2~5^2~5 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=f053b05dfe23d6817941cc891b30ad90cd4d43c0;p=deb_libcec.git LibCecSharp: fixed return value of GetActiveDevices(). issue #131 --- diff --git a/src/LibCecSharp/LibCecSharp.cpp b/src/LibCecSharp/LibCecSharp.cpp index ecb9bea..889bd47 100644 --- a/src/LibCecSharp/LibCecSharp.cpp +++ b/src/LibCecSharp/LibCecSharp.cpp @@ -377,7 +377,7 @@ namespace CecSharp for (uint8_t iPtr = 0; iPtr < 16; iPtr++) if (activeDevices[iPtr]) - retVal->Addresses[iDevices++] = (CecLogicalAddress)iPtr; + retVal->Set((CecLogicalAddress)iPtr); return retVal; }