Migrate from ScopedComPtr::CreateInstance() to CoCreateInstance in chrome/...
https://codereview.chromium.org/2894483002
This commit is contained in:
parent
79e59a88b4
commit
7f5fbb04e2
4 changed files with 14 additions and 7 deletions
|
@ -4,6 +4,7 @@
|
|||
|
||||
#include "atom/browser/ui/win/taskbar_host.h"
|
||||
|
||||
#include <objbase.h>
|
||||
#include <string>
|
||||
|
||||
#include "atom/browser/native_window.h"
|
||||
|
@ -203,9 +204,9 @@ bool TaskbarHost::HandleThumbarButtonEvent(int button_id) {
|
|||
}
|
||||
|
||||
bool TaskbarHost::InitializeTaskbar() {
|
||||
if (FAILED(taskbar_.CreateInstance(CLSID_TaskbarList,
|
||||
nullptr,
|
||||
CLSCTX_INPROC_SERVER)) ||
|
||||
if (FAILED(::CoCreateInstance(CLSID_TaskbarList, nullptr,
|
||||
CLSCTX_INPROC_SERVER,
|
||||
IID_PPV_ARGS(&taskbar_))) ||
|
||||
FAILED(taskbar_->HrInit())) {
|
||||
return false;
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue