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
e80000e6
Commit
e80000e6
authored
Nov 07, 2006
by
Paul Vriens
Committed by
Alexandre Julliard
Nov 08, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: Fix return values of string functions.
parent
d29c9c84
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
string.c
dlls/comctl32/string.c
+6
-6
No files found.
dlls/comctl32/string.c
View file @
e80000e6
...
...
@@ -165,8 +165,8 @@ INT WINAPI Str_GetPtrA (LPCSTR lpSrc, LPSTR lpDest, INT nMaxLen)
TRACE
(
"(%p %p %d)
\n
"
,
lpSrc
,
lpDest
,
nMaxLen
);
if
(
!
lpDest
&&
lpSrc
)
return
strlen
(
lpSrc
);
if
(
(
!
lpDest
||
nMaxLen
==
0
)
&&
lpSrc
)
return
(
strlen
(
lpSrc
)
+
1
);
if
(
nMaxLen
==
0
)
return
0
;
...
...
@@ -176,12 +176,12 @@ INT WINAPI Str_GetPtrA (LPCSTR lpSrc, LPSTR lpDest, INT nMaxLen)
return
0
;
}
len
=
strlen
(
lpSrc
)
;
len
=
strlen
(
lpSrc
)
+
1
;
if
(
len
>=
nMaxLen
)
len
=
nMaxLen
-
1
;
len
=
nMaxLen
;
RtlMoveMemory
(
lpDest
,
lpSrc
,
len
);
lpDest
[
len
]
=
'\0'
;
RtlMoveMemory
(
lpDest
,
lpSrc
,
len
-
1
);
lpDest
[
len
-
1
]
=
'\0'
;
return
len
;
}
...
...
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