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
af88f578
Commit
af88f578
authored
Jan 20, 1999
by
Marcus Meissner
Committed by
Alexandre Julliard
Jan 20, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
LCMapStringA: if dstlen is insufficient, return
ERROR_INSUFFICIENT_BUFFER (verified).
parent
ae0a73d4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
ole2nls.c
ole/ole2nls.c
+8
-5
No files found.
ole/ole2nls.c
View file @
af88f578
...
...
@@ -2042,9 +2042,10 @@ INT32 WINAPI LCMapString32A(
if
(
dstlen
==
0
)
return
srclen
;
/* dstlen=0 means "do nothing but return required length" */
if
(
dstlen
<
srclen
)
srclen
=
dstlen
;
/* No, this case is not an error under Windows 95.
And no '\0' gets written. */
if
(
dstlen
<
srclen
)
{
SetLastError
(
ERROR_INSUFFICIENT_BUFFER
);
return
0
;
}
if
(
mapflags
&
LCMAP_UPPERCASE
)
f
=
toupper
;
else
if
(
mapflags
&
LCMAP_LOWERCASE
)
...
...
@@ -2227,8 +2228,10 @@ INT32 WINAPI LCMapString32W(
if
(
dstlen
==
0
)
return
srclen
;
if
(
dstlen
<
srclen
)
return
0
;
if
(
dstlen
<
srclen
)
{
SetLastError
(
ERROR_INSUFFICIENT_BUFFER
);
return
0
;
}
if
(
mapflags
&
LCMAP_UPPERCASE
)
f
=
toupper
;
else
if
(
mapflags
&
LCMAP_LOWERCASE
)
...
...
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