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
0e06db39
Commit
0e06db39
authored
Sep 02, 2022
by
Nikolay Sivov
Committed by
Alexandre Julliard
Sep 02, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wmiutils: Use CRT allocation functions.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
parent
e0ca118f
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
12 deletions
+2
-12
path.c
dlls/wmiutils/path.c
+0
-0
statuscode.c
dlls/wmiutils/statuscode.c
+2
-2
wmiutils_private.h
dlls/wmiutils/wmiutils_private.h
+0
-10
No files found.
dlls/wmiutils/path.c
View file @
0e06db39
This diff is collapsed.
Click to expand it.
dlls/wmiutils/statuscode.c
View file @
0e06db39
...
...
@@ -57,7 +57,7 @@ static ULONG WINAPI status_code_Release(
if
(
!
refs
)
{
TRACE
(
"destroying %p
\n
"
,
status_code
);
heap_
free
(
status_code
);
free
(
status_code
);
}
return
refs
;
}
...
...
@@ -132,7 +132,7 @@ HRESULT WbemStatusCodeText_create( LPVOID *ppObj )
TRACE
(
"(%p)
\n
"
,
ppObj
);
if
(
!
(
sc
=
heap_alloc
(
sizeof
(
*
sc
)
)))
return
E_OUTOFMEMORY
;
if
(
!
(
sc
=
calloc
(
1
,
sizeof
(
*
sc
)
)))
return
E_OUTOFMEMORY
;
sc
->
IWbemStatusCodeText_iface
.
lpVtbl
=
&
status_code_vtbl
;
sc
->
refs
=
1
;
...
...
dlls/wmiutils/wmiutils_private.h
View file @
0e06db39
...
...
@@ -16,15 +16,5 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include "wine/heap.h"
HRESULT
WbemPath_create
(
LPVOID
*
)
DECLSPEC_HIDDEN
;
HRESULT
WbemStatusCodeText_create
(
LPVOID
*
)
DECLSPEC_HIDDEN
;
static
inline
WCHAR
*
strdupW
(
const
WCHAR
*
src
)
{
WCHAR
*
dst
;
if
(
!
src
)
return
NULL
;
if
((
dst
=
heap_alloc
(
(
lstrlenW
(
src
)
+
1
)
*
sizeof
(
WCHAR
)
)))
lstrcpyW
(
dst
,
src
);
return
dst
;
}
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