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:
parent
a4d892e244
commit
3eaf586149
|
@ -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 ))
|
||||
|
|
Loading…
Reference in New Issue