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
f601c015
Commit
f601c015
authored
Nov 16, 2022
by
Alex Henrie
Committed by
Alexandre Julliard
Nov 17, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msado15: Use standard C functions for memory allocation in command.c.
parent
02b226f7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
command.c
dlls/msado15/command.c
+5
-6
No files found.
dlls/msado15/command.c
View file @
f601c015
...
@@ -24,7 +24,6 @@
...
@@ -24,7 +24,6 @@
#include "msado15_backcompat.h"
#include "msado15_backcompat.h"
#include "wine/debug.h"
#include "wine/debug.h"
#include "wine/heap.h"
#include "msado15_private.h"
#include "msado15_private.h"
...
@@ -83,8 +82,8 @@ static ULONG WINAPI command_Release( _Command *iface )
...
@@ -83,8 +82,8 @@ static ULONG WINAPI command_Release( _Command *iface )
{
{
TRACE
(
"destroying %p
\n
"
,
command
);
TRACE
(
"destroying %p
\n
"
,
command
);
if
(
command
->
connection
)
_Connection_Release
(
command
->
connection
);
if
(
command
->
connection
)
_Connection_Release
(
command
->
connection
);
heap_
free
(
command
->
text
);
free
(
command
->
text
);
heap_
free
(
command
);
free
(
command
);
}
}
return
ref
;
return
ref
;
}
}
...
@@ -196,8 +195,8 @@ static HRESULT WINAPI command_put_CommandText( _Command *iface, BSTR text )
...
@@ -196,8 +195,8 @@ static HRESULT WINAPI command_put_CommandText( _Command *iface, BSTR text )
TRACE
(
"%p, %s
\n
"
,
command
,
debugstr_w
(
text
)
);
TRACE
(
"%p, %s
\n
"
,
command
,
debugstr_w
(
text
)
);
if
(
text
&&
!
(
source
=
strdupW
(
text
)))
return
E_OUTOFMEMORY
;
if
(
text
&&
!
(
source
=
wcsdup
(
text
)))
return
E_OUTOFMEMORY
;
heap_
free
(
command
->
text
);
free
(
command
->
text
);
command
->
text
=
source
;
command
->
text
=
source
;
return
S_OK
;
return
S_OK
;
}
}
...
@@ -379,7 +378,7 @@ HRESULT Command_create( void **obj )
...
@@ -379,7 +378,7 @@ HRESULT Command_create( void **obj )
{
{
struct
command
*
command
;
struct
command
*
command
;
if
(
!
(
command
=
heap_
alloc
(
sizeof
(
*
command
)
)))
return
E_OUTOFMEMORY
;
if
(
!
(
command
=
m
alloc
(
sizeof
(
*
command
)
)))
return
E_OUTOFMEMORY
;
command
->
Command_iface
.
lpVtbl
=
&
command_vtbl
;
command
->
Command_iface
.
lpVtbl
=
&
command_vtbl
;
command
->
type
=
adCmdUnknown
;
command
->
type
=
adCmdUnknown
;
command
->
text
=
NULL
;
command
->
text
=
NULL
;
...
...
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