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
f5ebb75f
Commit
f5ebb75f
authored
Jan 10, 2006
by
Phil Krylov
Committed by
Alexandre Julliard
Jan 10, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
riched20: Allow NUL characters.
parent
f61878b1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
string.c
dlls/riched20/string.c
+5
-5
No files found.
dlls/riched20/string.c
View file @
f5ebb75f
...
...
@@ -40,13 +40,13 @@ ME_String *ME_MakeString(LPCWSTR szText)
ME_String
*
ME_MakeStringN
(
LPCWSTR
szText
,
int
nMaxChars
)
{
ME_String
*
s
=
ALLOC_OBJ
(
ME_String
);
int
i
;
for
(
i
=
0
;
i
<
nMaxChars
&&
szText
[
i
];
i
++
)
;
s
->
nLen
=
i
;
s
->
nLen
=
nMaxChars
;
s
->
nBuffer
=
ME_GetOptimalBuffer
(
s
->
nLen
+
1
);
s
->
szData
=
ALLOC_N_OBJ
(
WCHAR
,
s
->
nBuffer
);
lstrcpynW
(
s
->
szData
,
szText
,
s
->
nLen
+
1
);
/* Native allows NUL chars */
memmove
(
s
->
szData
,
szText
,
s
->
nLen
*
sizeof
(
WCHAR
));
s
->
szData
[
s
->
nLen
]
=
0
;
return
s
;
}
...
...
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