Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1115)

Unified Diff: media/midi/midi_manager_winrt.cc

Issue 2830893004: Migrate IID Coupled Uses of ScopedComPtr::ReceiveVoid() to IID_PPV_ARGS (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/gpu/dxva_video_decode_accelerator_win.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/midi/midi_manager_winrt.cc
diff --git a/media/midi/midi_manager_winrt.cc b/media/midi/midi_manager_winrt.cc
index 14f313d2782cbf11425319af908eae0d69ccb810..5a0dedfe07438488891661c72bbfd39ddb8195d0 100644
--- a/media/midi/midi_manager_winrt.cc
+++ b/media/midi/midi_manager_winrt.cc
@@ -11,6 +11,7 @@
#include <cfgmgr32.h>
#include <comdef.h>
#include <devpkey.h>
+#include <objbase.h>
#include <robuffer.h>
#include <windows.devices.enumeration.h>
#include <windows.devices.midi.h>
@@ -175,7 +176,7 @@ ScopedComPtr<InterfaceType> WrlStaticsFactory() {
}
HRESULT hr = GetCombaseFunctions()->RoGetActivationFactory(
- class_id_hstring.get(), __uuidof(InterfaceType), com_ptr.ReceiveVoid());
+ class_id_hstring.get(), IID_PPV_ARGS(&com_ptr));
if (FAILED(hr)) {
VLOG(1) << "RoGetActivationFactory failed: " << PrintHr(hr);
com_ptr = nullptr;
« no previous file with comments | « media/gpu/dxva_video_decode_accelerator_win.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698