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
8ce48b9f
Commit
8ce48b9f
authored
Feb 01, 2017
by
Hugh McMaster
Committed by
Alexandre Julliard
Feb 01, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
regedit: Update some comments in edit.c.
Signed-off-by:
Hugh McMaster
<
hugh.mcmaster@outlook.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
93b08c62
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
edit.c
programs/regedit/edit.c
+3
-3
No files found.
programs/regedit/edit.c
View file @
8ce48b9f
...
...
@@ -249,7 +249,7 @@ BOOL CreateKey(HWND hwnd, HKEY hKeyRoot, LPCWSTR keyPath, LPWSTR keyName)
if
(
!
LoadStringW
(
GetModuleHandleW
(
0
),
IDS_NEWKEY
,
newKey
,
COUNT_OF
(
newKey
)))
goto
done
;
/* try to find
out a name for the newly create key (max 100 time
s) */
/* try to find
a name for the key being created (maximum = 100 attempt
s) */
for
(
keyNum
=
1
;
keyNum
<
100
;
keyNum
++
)
{
wsprintfW
(
keyName
,
newKey
,
keyNum
);
lRet
=
RegOpenKeyW
(
hKey
,
keyName
,
&
retKey
);
...
...
@@ -453,7 +453,7 @@ BOOL CreateValue(HWND hwnd, HKEY hKeyRoot, LPCWSTR keyPath, DWORD valueType, LPW
if
(
!
LoadStringW
(
GetModuleHandleW
(
0
),
IDS_NEWVALUE
,
newValue
,
COUNT_OF
(
newValue
)))
goto
done
;
/* try to find
out a name for the newly create key (max 100 time
s) */
/* try to find
a name for the value being created (maximum = 100 attempt
s) */
for
(
valueNum
=
1
;
valueNum
<
100
;
valueNum
++
)
{
wsprintfW
(
valueName
,
newValue
,
valueNum
);
lRet
=
RegQueryValueExW
(
hKey
,
valueName
,
0
,
0
,
0
,
0
);
...
...
@@ -492,7 +492,7 @@ BOOL RenameValue(HWND hwnd, HKEY hKeyRoot, LPCWSTR keyPath, LPCWSTR oldName, LPC
error_code_messagebox
(
hwnd
,
IDS_RENAME_VALUE_FAILED
);
return
FALSE
;
}
/* check if value already exists */
/* check if
the
value already exists */
if
(
check_value
(
hwnd
,
hKey
,
newName
))
{
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