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
0674e619
Commit
0674e619
authored
Jun 21, 2008
by
Ted Percival
Committed by
Alexandre Julliard
Jun 23, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
regedit: Interpret REG_DWORD as unsigned in editor.
parent
dfe4747b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
edit.c
programs/regedit/edit.c
+4
-4
No files found.
programs/regedit/edit.c
View file @
0674e619
...
...
@@ -107,8 +107,8 @@ static BOOL change_dword_base(HWND hwndDlg, BOOL toHex)
DWORD
val
;
if
(
!
GetDlgItemText
(
hwndDlg
,
IDC_VALUE_DATA
,
buf
,
COUNT_OF
(
buf
)))
return
FALSE
;
if
(
!
_stscanf
(
buf
,
toHex
?
"%
d
"
:
"%x"
,
&
val
))
return
FALSE
;
wsprintf
(
buf
,
toHex
?
"%
lx"
:
"%ld
"
,
val
);
if
(
!
_stscanf
(
buf
,
toHex
?
"%
u
"
:
"%x"
,
&
val
))
return
FALSE
;
wsprintf
(
buf
,
toHex
?
"%
x"
:
"%u
"
,
val
);
return
SetDlgItemText
(
hwndDlg
,
IDC_VALUE_DATA
,
buf
);
}
...
...
@@ -305,10 +305,10 @@ BOOL ModifyValue(HWND hwnd, HKEY hKeyRoot, LPCTSTR keyPath, LPCTSTR valueName)
else
error_code_messagebox
(
hwnd
,
lRet
);
}
}
else
if
(
type
==
REG_DWORD
)
{
wsprintf
(
stringValueData
,
isDecimal
?
"%
ld"
:
"%l
x"
,
*
((
DWORD
*
)
stringValueData
));
wsprintf
(
stringValueData
,
isDecimal
?
"%
u"
:
"%
x"
,
*
((
DWORD
*
)
stringValueData
));
if
(
DialogBox
(
0
,
MAKEINTRESOURCE
(
IDD_EDIT_DWORD
),
hwnd
,
modify_dlgproc
)
==
IDOK
)
{
DWORD
val
;
if
(
_stscanf
(
stringValueData
,
isDecimal
?
"%
d
"
:
"%x"
,
&
val
))
{
if
(
_stscanf
(
stringValueData
,
isDecimal
?
"%
u
"
:
"%x"
,
&
val
))
{
lRet
=
RegSetValueEx
(
hKey
,
valueName
,
0
,
type
,
(
BYTE
*
)
&
val
,
sizeof
(
val
));
if
(
lRet
==
ERROR_SUCCESS
)
result
=
TRUE
;
else
error_code_messagebox
(
hwnd
,
lRet
);
...
...
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