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
f9739a59
Commit
f9739a59
authored
Sep 01, 2022
by
Nikolay Sivov
Committed by
Alexandre Julliard
Sep 01, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wbemdisp: Use wcsdup() instead of internal helper.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
parent
da8a36c5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
9 deletions
+1
-9
locator.c
dlls/wbemdisp/locator.c
+1
-9
No files found.
dlls/wbemdisp/locator.c
View file @
f9739a59
...
...
@@ -50,14 +50,6 @@ static IWbemContext * unsafe_get_context_from_namedvalueset( IDispatch *disp )
return
valueset
?
valueset
->
context
:
NULL
;
}
static
WCHAR
*
heap_strdupW
(
const
WCHAR
*
src
)
{
WCHAR
*
dst
;
if
(
!
src
)
return
NULL
;
if
((
dst
=
malloc
(
(
lstrlenW
(
src
)
+
1
)
*
sizeof
(
WCHAR
)
)))
lstrcpyW
(
dst
,
src
);
return
dst
;
}
struct
services
;
static
HRESULT
EnumVARIANT_create
(
struct
services
*
,
IEnumWbemClassObject
*
,
IEnumVARIANT
**
);
...
...
@@ -784,7 +776,7 @@ static HRESULT SWbemMethod_create( struct methodset *set, const WCHAR *name, ISW
method
->
refs
=
1
;
method
->
set
=
set
;
ISWbemMethodSet_AddRef
(
&
method
->
set
->
ISWbemMethodSet_iface
);
if
(
!
(
method
->
name
=
heap_strdupW
(
name
)))
if
(
!
(
method
->
name
=
wcsdup
(
name
)))
{
ISWbemMethod_Release
(
&
method
->
ISWbemMethod_iface
);
return
E_OUTOFMEMORY
;
...
...
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