explorer: Ensure launchers_per_row is at least 1 as it is used in divisions.

Signed-off-by: Bruno Jesus <00cpxxx@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Bruno Jesus 2016-12-06 21:32:27 -02:00 committed by Alexandre Julliard
parent a4d892e244
commit 3eaf586149
1 changed files with 1 additions and 0 deletions

View File

@ -555,6 +555,7 @@ static void initialize_launchers( HWND hwnd )
title_offset_cy = BORDER_SIZE + icon_size + PADDING_SIZE;
desktop_width = GetSystemMetrics( SM_CXSCREEN );
launchers_per_row = desktop_width / launcher_size;
if (!launchers_per_row) launchers_per_row = 1;
hr = SHGetKnownFolderPath( &FOLDERID_Desktop, KF_FLAG_CREATE, NULL, &desktop_folder );
if (FAILED( hr ))