MicrosoftEdge / WebView2Feedback

Feedback and discussions about Microsoft Edge WebView2
https://aka.ms/webview2
423 stars 51 forks source link

Impossible to call COM-methods that expect NULL as interface pointer. #567

Open pontusn opened 3 years ago

pontusn commented 3 years ago

Impossible to call COM-methods that expect NULL as interface pointer. Sofar we have worked around problem by passing COM-objects also for optional parameters.

Possibly we can work around this problem in ATL/C++ by altering call parameters in IDispatch-implementstion. There is probably some confusion between VT_NULL, VT_EMPTY and VT_ERROR.

Version SDK: GA 1.0.622.22 Runtime: WebView2 Runtime GA Framework: Win32 OS: All

AB#29930251

champnic commented 3 years ago

Thanks for reporting, I've opened a bug on our backlog and we'll take a look!