diff --git a/win-linux/extras/online-installer/src/uiclasses/window.cpp b/win-linux/extras/online-installer/src/uiclasses/window.cpp index cb81517ea..97f7140b8 100644 --- a/win-linux/extras/online-installer/src/uiclasses/window.cpp +++ b/win-linux/extras/online-installer/src/uiclasses/window.cpp @@ -210,7 +210,7 @@ void Window::showMaximized() void Window::setIcon(int id) { HMODULE hInstance = GetModuleHandle(NULL); - HICON hIcon = LoadIcon(hInstance, MAKEINTRESOURCE(id)); + HICON hIcon = (HICON)LoadImage(hInstance, MAKEINTRESOURCE(id), IMAGE_ICON, 96, 96, LR_DEFAULTCOLOR | LR_SHARED); SendMessage(m_hWnd, WM_SETICON, ICON_SMALL, (LPARAM)hIcon); SendMessage(m_hWnd, WM_SETICON, ICON_BIG, (LPARAM)hIcon); }