Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
dfaf6a42
Commit
dfaf6a42
authored
Jan 07, 2014
by
Vincent Povirk
Committed by
Alexandre Julliard
Jan 08, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
explorer: Default to showing the systray if the desktop is named "shell".
parent
913cb836
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
desktop.c
programs/explorer/desktop.c
+8
-3
No files found.
programs/explorer/desktop.c
View file @
dfaf6a42
...
...
@@ -644,17 +644,22 @@ static BOOL get_default_enable_shell( const WCHAR *name )
'E'
,
'x'
,
'p'
,
'l'
,
'o'
,
'r'
,
'e'
,
'r'
,
'\\'
,
'D'
,
'e'
,
's'
,
'k'
,
't'
,
'o'
,
'p'
,
's'
,
0
};
static
const
WCHAR
enable_shellW
[]
=
{
'E'
,
'n'
,
'a'
,
'b'
,
'l'
,
'e'
,
'S'
,
'h'
,
'e'
,
'l'
,
'l'
,
0
};
static
const
WCHAR
shellW
[]
=
{
's'
,
'h'
,
'e'
,
'l'
,
'l'
,
0
};
HKEY
hkey
;
BOOL
result
=
FALSE
;
BOOL
found
=
FALSE
;
BOOL
result
;
DWORD
size
=
sizeof
(
result
);
/* @@ Wine registry key: HKCU\Software\Wine\Explorer\Desktops */
if
(
!
RegOpenKeyW
(
HKEY_CURRENT_USER
,
desktop_keyW
,
&
hkey
))
{
if
(
RegGetValueW
(
hkey
,
name
,
enable_shellW
,
RRF_RT_REG_DWORD
,
NULL
,
&
result
,
&
size
))
result
=
FALS
E
;
if
(
!
RegGetValueW
(
hkey
,
name
,
enable_shellW
,
RRF_RT_REG_DWORD
,
NULL
,
&
result
,
&
size
))
found
=
TRU
E
;
RegCloseKey
(
hkey
);
}
/* Default off, except for the magic desktop name "shell" */
if
(
!
found
)
result
=
(
lstrcmpiW
(
name
,
shellW
)
==
0
);
return
result
;
}
...
...
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