Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
0d40cdc7
Commit
0d40cdc7
authored
Oct 18, 2013
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
explorer: Avoid crashing when the desktop launchers are not initialized.
parent
040bd407
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
desktop.c
programs/explorer/desktop.c
+4
-1
No files found.
programs/explorer/desktop.c
View file @
0d40cdc7
...
...
@@ -88,8 +88,10 @@ static RECT get_title_rect( unsigned int index )
static
const
struct
launcher
*
launcher_from_point
(
int
x
,
int
y
)
{
RECT
icon
,
title
;
unsigned
int
index
=
x
/
launcher_size
+
(
y
/
launcher_size
)
*
launchers_per_row
;
unsigned
int
index
;
if
(
!
nb_launchers
)
return
NULL
;
index
=
x
/
launcher_size
+
(
y
/
launcher_size
)
*
launchers_per_row
;
if
(
index
>=
nb_launchers
)
return
NULL
;
icon
=
get_icon_rect
(
index
);
...
...
@@ -523,6 +525,7 @@ static LRESULT WINAPI desktop_wnd_proc( HWND hwnd, UINT message, WPARAM wp, LPAR
return
0
;
case
WM_LBUTTONDBLCLK
:
if
(
!
using_root
)
{
const
struct
launcher
*
launcher
=
launcher_from_point
(
(
short
)
LOWORD
(
lp
),
(
short
)
HIWORD
(
lp
)
);
if
(
launcher
)
do_launch
(
launcher
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment