diff --git a/atom/browser/native_window_views.cc b/atom/browser/native_window_views.cc index 2b9b0bebd4fe..09b65ac77b00 100644 --- a/atom/browser/native_window_views.cc +++ b/atom/browser/native_window_views.cc @@ -313,7 +313,7 @@ void NativeWindowViews::SetResizable(bool resizable) { if (resizable) style |= WS_MAXIMIZEBOX | WS_MINIMIZEBOX | WS_THICKFRAME; else - style &= ~(WS_MAXIMIZEBOX | WS_MINIMIZEBOX | WS_THICKFRAME); + style = (style & ~(WS_MAXIMIZEBOX | WS_THICKFRAME)) | WS_MINIMIZEBOX; ::SetWindowLong(GetAcceleratedWidget(), GWL_STYLE, style); } #endif