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
7de394d6
Commit
7de394d6
authored
Feb 03, 2010
by
Dan Kegel
Committed by
Alexandre Julliard
Feb 03, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
reg.exe: Handle setting DWORD registry values.
parent
73c24405
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
reg.c
programs/reg/reg.c
+15
-0
No files found.
programs/reg/reg.c
View file @
7de394d6
...
@@ -124,6 +124,21 @@ static LPBYTE get_regdata(LPWSTR data, DWORD reg_type, WCHAR separator, DWORD *r
...
@@ -124,6 +124,21 @@ static LPBYTE get_regdata(LPWSTR data, DWORD reg_type, WCHAR separator, DWORD *r
lstrcpyW
((
LPWSTR
)
out_data
,
data
);
lstrcpyW
((
LPWSTR
)
out_data
,
data
);
break
;
break
;
}
}
case
REG_DWORD
:
{
LPWSTR
rest
;
DWORD
val
;
val
=
strtolW
(
data
,
&
rest
,
0
);
if
(
rest
==
data
)
{
static
const
WCHAR
nonnumber
[]
=
{
'E'
,
'r'
,
'r'
,
'o'
,
'r'
,
':'
,
' '
,
'/'
,
'd'
,
' '
,
'r'
,
'e'
,
'q'
,
'u'
,
'i'
,
'r'
,
'e'
,
's'
,
' '
,
'n'
,
'u'
,
'm'
,
'b'
,
'e'
,
'r'
,
'.'
,
'\n'
,
0
};
reg_printfW
(
nonnumber
);
break
;
}
*
reg_count
=
sizeof
(
DWORD
);
out_data
=
HeapAlloc
(
GetProcessHeap
(),
0
,
*
reg_count
);
((
LPDWORD
)
out_data
)[
0
]
=
val
;
break
;
}
default:
default:
{
{
static
const
WCHAR
unhandled
[]
=
{
'U'
,
'n'
,
'h'
,
'a'
,
'n'
,
'd'
,
'l'
,
'e'
,
'd'
,
' '
,
'T'
,
'y'
,
'p'
,
'e'
,
' '
,
'0'
,
'x'
,
'%'
,
'x'
,
' '
,
' '
,
'd'
,
'a'
,
't'
,
'a'
,
' '
,
'%'
,
's'
,
'\n'
,
0
};
static
const
WCHAR
unhandled
[]
=
{
'U'
,
'n'
,
'h'
,
'a'
,
'n'
,
'd'
,
'l'
,
'e'
,
'd'
,
' '
,
'T'
,
'y'
,
'p'
,
'e'
,
' '
,
'0'
,
'x'
,
'%'
,
'x'
,
' '
,
' '
,
'd'
,
'a'
,
't'
,
'a'
,
' '
,
'%'
,
's'
,
'\n'
,
0
};
...
...
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