WebRtc.NET icon indicating copy to clipboard operation
WebRtc.NET copied to clipboard

InitializePeerConnection function doesn't return Boolean value correctly

Open EbramTawfik opened this issue 6 years ago • 2 comments

InitializePeerConnection function in this file deosn't return correct value https://github.com/radioman/WebRtc.NET/blob/staging/WebRtc.NET/WebRtcNative.cs#L86

EbramTawfik avatar Oct 08 '18 19:10 EbramTawfik

I found the solution it needs to be :

        [DllImport(dll)]
	[return: MarshalAs(UnmanagedType.I1)]
	static extern bool InitializePeerConnection(IntPtr p);

EbramTawfik avatar Oct 08 '18 19:10 EbramTawfik

i added [return: MarshalAs(UnmanagedType.I1)] after [DllImport(dll)] but still it doesn't return bool. Is there any other change needed ?

Cozdemir avatar Nov 02 '19 15:11 Cozdemir