Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-fonts
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
Aleksandr Isakov
wine-fonts
Commits
fdb79832
Commit
fdb79832
authored
Jan 09, 2016
by
Michael Müller
Committed by
Vitaly Lipatov
Jul 30, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
explorer: Create CurrentControlSet\Control\Video registry key as non-volatile.
Signed-off-by:
Michael Müller
<
michael@fds-team.de
>
parent
d3691e6c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
0 deletions
+16
-0
registry.c
dlls/advapi32/tests/registry.c
+7
-0
desktop.c
programs/explorer/desktop.c
+9
-0
No files found.
dlls/advapi32/tests/registry.c
View file @
fdb79832
...
...
@@ -1318,6 +1318,13 @@ static void test_reg_create_key(void)
RegDeleteKeyA
(
hkey1
,
""
);
RegCloseKey
(
hkey1
);
/* System\CurrentControlSet\Control\Video should be non-volatile */
ret
=
RegCreateKeyExA
(
HKEY_LOCAL_MACHINE
,
"System
\\
CurrentControlSet
\\
Control
\\
Video
\\
Wine"
,
0
,
NULL
,
0
,
KEY_NOTIFY
,
NULL
,
&
hkey1
,
NULL
);
ok
(
ret
==
ERROR_SUCCESS
,
"RegCreateKeyExA failed with error %d
\n
"
,
ret
);
RegDeleteKeyA
(
hkey1
,
""
);
RegCloseKey
(
hkey1
);
/* WOW64 flags - open an existing key */
hkey1
=
NULL
;
ret
=
RegCreateKeyExA
(
HKEY_LOCAL_MACHINE
,
"Software"
,
0
,
NULL
,
0
,
KEY_READ
|
KEY_WOW64_32KEY
,
NULL
,
&
hkey1
,
NULL
);
...
...
programs/explorer/desktop.c
View file @
fdb79832
...
...
@@ -878,6 +878,11 @@ static BOOL get_default_enable_shell( const WCHAR *name )
static
HMODULE
load_graphics_driver
(
const
WCHAR
*
driver
,
const
GUID
*
guid
)
{
static
const
WCHAR
video_keyW
[]
=
{
'S'
,
'y'
,
's'
,
't'
,
'e'
,
'm'
,
'\\'
,
'C'
,
'u'
,
'r'
,
'r'
,
'e'
,
'n'
,
't'
,
'C'
,
'o'
,
'n'
,
't'
,
'r'
,
'o'
,
'l'
,
'S'
,
'e'
,
't'
,
'\\'
,
'C'
,
'o'
,
'n'
,
't'
,
'r'
,
'o'
,
'l'
,
'\\'
,
'V'
,
'i'
,
'd'
,
'e'
,
'o'
,
0
};
static
const
WCHAR
device_keyW
[]
=
{
'S'
,
'y'
,
's'
,
't'
,
'e'
,
'm'
,
'\\'
,
'C'
,
'u'
,
'r'
,
'r'
,
'e'
,
'n'
,
't'
,
'C'
,
'o'
,
'n'
,
't'
,
'r'
,
'o'
,
'l'
,
'S'
,
'e'
,
't'
,
'\\'
,
...
...
@@ -946,6 +951,10 @@ static HMODULE load_graphics_driver( const WCHAR *driver, const GUID *guid )
TRACE
(
"display %s driver %s
\n
"
,
debugstr_guid
(
guid
),
debugstr_w
(
libname
)
);
/* create video key first without REG_OPTION_VOLATILE attribute */
if
(
!
RegCreateKeyExW
(
HKEY_LOCAL_MACHINE
,
video_keyW
,
0
,
NULL
,
0
,
KEY_SET_VALUE
,
NULL
,
&
hkey
,
NULL
))
RegCloseKey
(
hkey
);
swprintf
(
key
,
ARRAY_SIZE
(
key
),
device_keyW
,
guid
->
Data1
,
guid
->
Data2
,
guid
->
Data3
,
guid
->
Data4
[
0
],
guid
->
Data4
[
1
],
guid
->
Data4
[
2
],
guid
->
Data4
[
3
],
guid
->
Data4
[
4
],
guid
->
Data4
[
5
],
guid
->
Data4
[
6
],
guid
->
Data4
[
7
]
);
...
...
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