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
f5a23da2
Commit
f5a23da2
authored
Nov 20, 2003
by
Dimitrie O. Paun
Committed by
Alexandre Julliard
Nov 20, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bail when we're out of memory.
parent
c5150fb6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
6 deletions
+12
-6
rpc_binding.c
dlls/rpcrt4/rpc_binding.c
+12
-6
No files found.
dlls/rpcrt4/rpc_binding.c
View file @
f5a23da2
...
...
@@ -516,10 +516,13 @@ static LPSTR RPCRT4_strconcatA(LPSTR dst, LPCSTR src)
{
DWORD
len
=
strlen
(
dst
),
slen
=
strlen
(
src
);
LPSTR
ndst
=
HeapReAlloc
(
GetProcessHeap
(),
0
,
dst
,
(
len
+
slen
+
2
)
*
sizeof
(
CHAR
));
if
(
!
ndst
)
HeapFree
(
GetProcessHeap
(),
0
,
dst
);
if
(
!
ndst
)
{
HeapFree
(
GetProcessHeap
(),
0
,
dst
);
return
NULL
;
}
ndst
[
len
]
=
','
;
memcpy
(
ndst
+
len
+
1
,
src
,
slen
*
sizeof
(
CHAR
));
ndst
[
len
+
slen
+
1
]
=
0
;
memcpy
(
ndst
+
len
+
1
,
src
,
slen
+
1
);
return
ndst
;
}
...
...
@@ -527,10 +530,13 @@ static LPWSTR RPCRT4_strconcatW(LPWSTR dst, LPCWSTR src)
{
DWORD
len
=
strlenW
(
dst
),
slen
=
strlenW
(
src
);
LPWSTR
ndst
=
HeapReAlloc
(
GetProcessHeap
(),
0
,
dst
,
(
len
+
slen
+
2
)
*
sizeof
(
WCHAR
));
if
(
!
ndst
)
HeapFree
(
GetProcessHeap
(),
0
,
dst
);
if
(
!
ndst
)
{
HeapFree
(
GetProcessHeap
(),
0
,
dst
);
return
NULL
;
}
ndst
[
len
]
=
','
;
memcpy
(
ndst
+
len
+
1
,
src
,
slen
*
sizeof
(
WCHAR
));
ndst
[
len
+
slen
+
1
]
=
0
;
memcpy
(
ndst
+
len
+
1
,
src
,
(
slen
+
1
)
*
sizeof
(
WCHAR
));
return
ndst
;
}
...
...
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