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
ae097646
Commit
ae097646
authored
Sep 26, 2008
by
Andrey Turkin
Committed by
Alexandre Julliard
Sep 30, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
regedit: Ignore spaces in regedit files.
parent
ad89d9a2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
regproc.c
programs/regedit/regproc.c
+8
-0
No files found.
programs/regedit/regproc.c
View file @
ae097646
...
...
@@ -488,6 +488,7 @@ static void processSetValue(WCHAR* line, BOOL is_unicode)
LONG
res
;
/* get value name */
while
(
isspaceW
(
line
[
line_idx
])
)
line_idx
++
;
if
(
line
[
line_idx
]
==
'@'
&&
line
[
line_idx
+
1
]
==
'='
)
{
line
[
line_idx
]
=
'\0'
;
val_name
=
line
;
...
...
@@ -509,6 +510,7 @@ static void processSetValue(WCHAR* line, BOOL is_unicode)
}
}
}
while
(
isspaceW
(
line
[
line_idx
])
)
line_idx
++
;
if
(
line
[
line_idx
]
!=
'='
)
{
char
*
lineA
;
line
[
line_idx
]
=
'\"'
;
...
...
@@ -525,7 +527,13 @@ static void processSetValue(WCHAR* line, BOOL is_unicode)
return
;
}
line_idx
++
;
/* skip the '=' character */
while
(
isspaceW
(
line
[
line_idx
])
)
line_idx
++
;
val_data
=
line
+
line_idx
;
/* trim trailing blanks */
line_idx
=
strlenW
(
val_data
);
while
(
line_idx
>
0
&&
isspaceW
(
val_data
[
line_idx
-
1
]))
line_idx
--
;
val_data
[
line_idx
]
=
'\0'
;
REGPROC_unescape_string
(
val_name
);
res
=
setValue
(
val_name
,
val_data
,
is_unicode
);
...
...
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