fix: return pointer instead of pointer's content (#16014)

This commit is contained in:
Cheng Zhao 2018-12-12 02:45:55 +09:00 committed by John Kleinschmidt
parent f3c64ea9d8
commit 624ade2c25
9 changed files with 302 additions and 253 deletions

View file

@ -696,8 +696,8 @@ v8::Local<v8::Value> TopLevelWindow::GetNativeWindowHandle() {
// TODO(MarshallOfSound): Replace once
// https://chromium-review.googlesource.com/c/chromium/src/+/1253094/ has
// landed
auto handle = window_->GetNativeWindowHandlePointer();
return ToBuffer(isolate(), std::get<0>(handle), std::get<1>(handle));
NativeWindowHandle handle = window_->GetNativeWindowHandle();
return ToBuffer(isolate(), &handle, sizeof(handle));
}
void TopLevelWindow::SetProgressBar(double progress, mate::Arguments* args) {