| Index: remoting/host/disconnect_window_win.cc
|
| diff --git a/remoting/host/disconnect_window_win.cc b/remoting/host/disconnect_window_win.cc
|
| index f969c36a8f8d44b906cdb137d1956e1caea6b231..6a4e48c55c67680c51a057ccfd7f72d367527a00 100644
|
| --- a/remoting/host/disconnect_window_win.cc
|
| +++ b/remoting/host/disconnect_window_win.cc
|
| @@ -8,9 +8,9 @@
|
| #include "base/compiler_specific.h"
|
| #include "base/logging.h"
|
| #include "base/macros.h"
|
| -#include "base/process/memory.h"
|
| #include "base/strings/string_util.h"
|
| #include "base/strings/utf_string_conversions.h"
|
| +#include "base/win/current_module.h"
|
| #include "base/win/scoped_gdi_object.h"
|
| #include "base/win/scoped_hdc.h"
|
| #include "base/win/scoped_select_object.h"
|
| @@ -230,9 +230,9 @@ bool DisconnectWindowWin::BeginDialog() {
|
| DCHECK(CalledOnValidThread());
|
| DCHECK(!hwnd_);
|
|
|
| - HMODULE module = base::GetModuleFromAddress(&DialogProc);
|
| - hwnd_ = CreateDialogParam(module, MAKEINTRESOURCE(IDD_DISCONNECT), nullptr,
|
| - DialogProc, reinterpret_cast<LPARAM>(this));
|
| + hwnd_ =
|
| + CreateDialogParam(CURRENT_MODULE(), MAKEINTRESOURCE(IDD_DISCONNECT),
|
| + nullptr, DialogProc, reinterpret_cast<LPARAM>(this));
|
| if (!hwnd_)
|
| return false;
|
|
|
|
|