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
f826b250
Commit
f826b250
authored
Feb 08, 2018
by
Nikolay Sivov
Committed by
Alexandre Julliard
Feb 08, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xmllite/tests: Use the global HeapAlloc() wrappers.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
3436460c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
reader.c
dlls/xmllite/tests/reader.c
+5
-6
No files found.
dlls/xmllite/tests/reader.c
View file @
f826b250
...
...
@@ -30,20 +30,21 @@
#include "ole2.h"
#include "xmllite.h"
#include "wine/test.h"
#include "wine/heap.h"
DEFINE_GUID
(
IID_IXmlReaderInput
,
0x0b3ccc9b
,
0x9214
,
0x428b
,
0xa2
,
0xae
,
0xef
,
0x3a
,
0xa8
,
0x71
,
0xaf
,
0xda
);
static
WCHAR
*
a2w
(
const
char
*
str
)
{
int
len
=
MultiByteToWideChar
(
CP_ACP
,
0
,
str
,
-
1
,
NULL
,
0
);
WCHAR
*
ret
=
HeapAlloc
(
GetProcessHeap
(),
0
,
len
*
sizeof
(
WCHAR
));
WCHAR
*
ret
=
heap_alloc
(
len
*
sizeof
(
WCHAR
));
MultiByteToWideChar
(
CP_ACP
,
0
,
str
,
-
1
,
ret
,
len
);
return
ret
;
}
static
void
free_str
(
WCHAR
*
str
)
{
HeapFree
(
GetProcessHeap
(),
0
,
str
);
heap_free
(
str
);
}
static
int
strcmp_wa
(
const
WCHAR
*
str1
,
const
char
*
stra
)
...
...
@@ -408,9 +409,7 @@ static ULONG WINAPI testinput_Release(IUnknown *iface)
ref
=
InterlockedDecrement
(
&
This
->
ref
);
if
(
ref
==
0
)
{
HeapFree
(
GetProcessHeap
(),
0
,
This
);
}
heap_free
(
This
);
return
ref
;
}
...
...
@@ -426,7 +425,7 @@ static HRESULT testinput_createinstance(void **ppObj)
{
testinput
*
input
;
input
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
*
input
));
input
=
heap_alloc
(
sizeof
(
*
input
));
if
(
!
input
)
return
E_OUTOFMEMORY
;
input
->
IUnknown_iface
.
lpVtbl
=
&
testinput_vtbl
;
...
...
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