Index: views/widget/widget_win.cc |
=================================================================== |
--- views/widget/widget_win.cc (revision 34039) |
+++ views/widget/widget_win.cc (working copy) |
@@ -470,7 +470,9 @@ |
} |
LRESULT WidgetWin::OnCreate(CREATESTRUCT* create_struct) { |
- SetNativeWindowProperty(kWidgetKey, this); |
+ // Widget::GetWidgetFromNativeView expects the contents of this property |
+ // to be of type Widget, so the cast is necessary. |
+ SetNativeWindowProperty(kWidgetKey, static_cast<Widget*>(this)); |
return 0; |
} |