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
d3d2f4af
Commit
d3d2f4af
authored
Mar 31, 2010
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3: Remove unnecessary string constants.
parent
35dfd34a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
node.c
dlls/msxml3/node.c
+3
-5
No files found.
dlls/msxml3/node.c
View file @
d3d2f4af
...
@@ -1294,8 +1294,6 @@ static HRESULT WINAPI xmlnode_put_dataType(
...
@@ -1294,8 +1294,6 @@ static HRESULT WINAPI xmlnode_put_dataType(
static
BSTR
EnsureCorrectEOL
(
BSTR
sInput
)
static
BSTR
EnsureCorrectEOL
(
BSTR
sInput
)
{
{
static
const
WCHAR
SZ_RETURN
[]
=
{
'\n'
,
0
};
static
const
WCHAR
SZ_LINEFEED
[]
=
{
'\r'
,
0
};
int
nNum
=
0
;
int
nNum
=
0
;
BSTR
sNew
;
BSTR
sNew
;
int
nLen
;
int
nLen
;
...
@@ -1305,7 +1303,7 @@ static BSTR EnsureCorrectEOL(BSTR sInput)
...
@@ -1305,7 +1303,7 @@ static BSTR EnsureCorrectEOL(BSTR sInput)
/* Count line endings */
/* Count line endings */
for
(
i
=
0
;
i
<
nLen
;
i
++
)
for
(
i
=
0
;
i
<
nLen
;
i
++
)
{
{
if
(
sInput
[
i
]
==
SZ_RETURN
[
0
]
)
if
(
sInput
[
i
]
==
'\n'
)
nNum
++
;
nNum
++
;
}
}
...
@@ -1318,9 +1316,9 @@ static BSTR EnsureCorrectEOL(BSTR sInput)
...
@@ -1318,9 +1316,9 @@ static BSTR EnsureCorrectEOL(BSTR sInput)
sNew
=
SysAllocStringLen
(
NULL
,
nLen
+
nNum
+
1
);
sNew
=
SysAllocStringLen
(
NULL
,
nLen
+
nNum
+
1
);
for
(
i
=
0
;
i
<
nLen
;
i
++
)
for
(
i
=
0
;
i
<
nLen
;
i
++
)
{
{
if
(
sInput
[
i
]
==
SZ_RETURN
[
0
]
)
if
(
sInput
[
i
]
==
'\n'
)
{
{
sNew
[
i
+
nPlace
]
=
SZ_LINEFEED
[
0
]
;
sNew
[
i
+
nPlace
]
=
'\r'
;
nPlace
++
;
nPlace
++
;
}
}
sNew
[
i
+
nPlace
]
=
sInput
[
i
];
sNew
[
i
+
nPlace
]
=
sInput
[
i
];
...
...
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