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
98c13331
Commit
98c13331
authored
Jan 07, 2008
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
regedit: Fixed parsing of hex sequences.
parent
f2e32f7c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
12 deletions
+5
-12
regproc.c
programs/regedit/regproc.c
+5
-12
No files found.
programs/regedit/regproc.c
View file @
98c13331
...
...
@@ -92,15 +92,10 @@ static BYTE* convertHexCSVToHex(char *str, DWORD *size)
*
size
=
0
;
while
(
*
s
!=
'\0'
)
{
UINT
wc
;
char
dummy
;
char
*
end
;
if
(
s
[
1
]
!=
','
&&
s
[
1
]
!=
'\0'
&&
s
[
2
]
!=
','
&&
s
[
2
]
!=
'\0'
)
{
fprintf
(
stderr
,
"%s: ERROR converting CSV hex stream. Invalid sequence at '%s'
\n
"
,
getAppName
(),
s
);
HeapFree
(
GetProcessHeap
(),
0
,
data
);
return
NULL
;
}
if
(
sscanf
(
s
,
"%x%c"
,
&
wc
,
&
dummy
)
<
1
||
dummy
!=
','
)
{
wc
=
strtoul
(
s
,
&
end
,
16
);
if
(
end
==
s
||
wc
>
0xff
||
(
*
end
&&
*
end
!=
','
))
{
fprintf
(
stderr
,
"%s: ERROR converting CSV hex stream. Invalid value at '%s'
\n
"
,
getAppName
(),
s
);
HeapFree
(
GetProcessHeap
(),
0
,
data
);
...
...
@@ -108,10 +103,8 @@ static BYTE* convertHexCSVToHex(char *str, DWORD *size)
}
*
d
++
=
(
BYTE
)
wc
;
(
*
size
)
++
;
/* Skip one or two digits and any comma */
while
(
*
s
&&
*
s
!=
','
)
s
++
;
if
(
*
s
)
s
++
;
if
(
*
end
)
end
++
;
s
=
end
;
}
return
data
;
...
...
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