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
97a38020
Commit
97a38020
authored
Jul 06, 2022
by
Hugh McMaster
Committed by
Alexandre Julliard
Jul 06, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
regedit: Directly use RegQueryValueExW() instead of a helper function.
Signed-off-by:
Hugh McMaster
<
hugh.mcmaster@outlook.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
101fe51b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
6 deletions
+1
-6
edit.c
programs/regedit/edit.c
+1
-6
No files found.
programs/regedit/edit.c
View file @
97a38020
...
...
@@ -178,11 +178,6 @@ static INT_PTR CALLBACK bin_modify_dlgproc(HWND hwndDlg, UINT uMsg, WPARAM wPara
return
FALSE
;
}
static
BOOL
value_exists
(
HWND
hwnd
,
HKEY
hKey
,
const
WCHAR
*
value_name
)
{
return
!
RegQueryValueExW
(
hKey
,
value_name
,
NULL
,
NULL
,
NULL
,
NULL
);
}
static
LPWSTR
read_value
(
HWND
hwnd
,
HKEY
hKey
,
LPCWSTR
valueName
,
DWORD
*
lpType
,
LONG
*
len
)
{
DWORD
valueDataLen
;
...
...
@@ -523,7 +518,7 @@ BOOL RenameValue(HWND hwnd, HKEY hKeyRoot, LPCWSTR keyPath, LPCWSTR oldName, LPC
return
FALSE
;
}
if
(
value_exists
(
hwnd
,
hKey
,
newName
))
{
if
(
!
RegQueryValueExW
(
hKey
,
newName
,
NULL
,
NULL
,
NULL
,
NULL
))
{
error_code_messagebox
(
hwnd
,
IDS_VALUE_EXISTS
,
oldName
);
goto
done
;
}
...
...
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