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

Unified Diff: remoting/host/desktop_session_win.cc

Issue 2887243002: Remove ScopedComPtr::CreateInstance() (Closed)
Patch Set: Created 3 years, 7 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 | « remoting/host/audio_capturer_win.cc ('k') | remoting/host/setup/win/auth_code_getter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/desktop_session_win.cc
diff --git a/remoting/host/desktop_session_win.cc b/remoting/host/desktop_session_win.cc
index 77b30603117f75a77d7081dc94a76e31d97b5946..1f7764a3fa76368dc3722548596548e28df31424 100644
--- a/remoting/host/desktop_session_win.cc
+++ b/remoting/host/desktop_session_win.cc
@@ -4,6 +4,7 @@
#include "remoting/host/desktop_session_win.h"
+#include <objbase.h>
#include <sddl.h>
#include <limits>
@@ -266,8 +267,9 @@ bool RdpSession::Initialize(const ScreenResolution& resolution) {
}
// Create the RDP wrapper object.
- HRESULT result = rdp_desktop_session_.CreateInstance(
- __uuidof(RdpDesktopSession));
+ HRESULT result =
+ ::CoCreateInstance(__uuidof(RdpDesktopSession), nullptr, CLSCTX_ALL,
+ IID_PPV_ARGS(&rdp_desktop_session_));
if (FAILED(result)) {
LOG(ERROR) << "Failed to create RdpSession object, 0x"
<< std::hex << result << std::dec << ".";
« no previous file with comments | « remoting/host/audio_capturer_win.cc ('k') | remoting/host/setup/win/auth_code_getter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698