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
5c8e83c4
Commit
5c8e83c4
authored
Oct 03, 2012
by
Huw Davies
Committed by
Alexandre Julliard
Oct 03, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: If the value doesn't exist under the volatile key fallback to the permanent key.
parent
fb5dbd60
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
sysparams.c
dlls/user32/sysparams.c
+10
-3
No files found.
dlls/user32/sysparams.c
View file @
5c8e83c4
...
...
@@ -622,12 +622,19 @@ static BOOL SYSPARAMS_LoadRaw( LPCWSTR lpRegKey, LPCWSTR lpValName, LPBYTE lpBuf
HKEY
hKey
;
memset
(
lpBuf
,
0
,
count
);
if
((
RegOpenKeyW
(
get_volatile_regkey
(),
lpRegKey
,
&
hKey
)
==
ERROR_SUCCESS
)
||
(
RegOpenKeyW
(
HKEY_CURRENT_USER
,
lpRegKey
,
&
hKey
)
==
ERROR_SUCCESS
))
if
(
RegOpenKeyW
(
get_volatile_regkey
(),
lpRegKey
,
&
hKey
)
==
ERROR_SUCCESS
)
{
ret
=
!
RegQueryValueExW
(
hKey
,
lpValName
,
NULL
,
&
type
,
lpBuf
,
&
count
);
RegCloseKey
(
hKey
);
}
if
(
!
ret
&&
RegOpenKeyW
(
HKEY_CURRENT_USER
,
lpRegKey
,
&
hKey
)
==
ERROR_SUCCESS
)
{
ret
=
!
RegQueryValueExW
(
hKey
,
lpValName
,
NULL
,
&
type
,
lpBuf
,
&
count
);
ret
=
!
RegQueryValueExW
(
hKey
,
lpValName
,
NULL
,
&
type
,
lpBuf
,
&
count
);
RegCloseKey
(
hKey
);
}
return
ret
;
}
...
...
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