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
d51d209b
Commit
d51d209b
authored
Jun 15, 2009
by
Francois Gouget
Committed by
Alexandre Julliard
Jun 15, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpcrt4/tests: Replace malloc() with HeapAlloc().
parent
dcfd048e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
server.c
dlls/rpcrt4/tests/server.c
+8
-8
No files found.
dlls/rpcrt4/tests/server.c
View file @
d51d209b
...
...
@@ -56,13 +56,13 @@ static void InitFunctionPointers(void)
void
__RPC_FAR
*
__RPC_USER
midl_user_allocate
(
SIZE_T
n
)
{
return
malloc
(
n
);
return
HeapAlloc
(
GetProcessHeap
(),
0
,
n
);
}
void
__RPC_USER
midl_user_free
(
void
__RPC_FAR
*
p
)
{
free
(
p
);
HeapFree
(
GetProcessHeap
(),
0
,
p
);
}
static
char
*
...
...
@@ -1218,21 +1218,21 @@ array_tests(void)
ok
(
sum_toplev_conf_cond
(
c
,
5
,
6
,
1
)
==
10
,
"RPC sum_toplev_conf_cond
\n
"
);
ok
(
sum_toplev_conf_cond
(
c
,
5
,
6
,
0
)
==
15
,
"RPC sum_toplev_conf_cond
\n
"
);
dc
=
malloc
(
FIELD_OFFSET
(
doub_carr_t
,
a
[
2
]));
dc
=
HeapAlloc
(
GetProcessHeap
(),
0
,
FIELD_OFFSET
(
doub_carr_t
,
a
[
2
]));
dc
->
n
=
2
;
dc
->
a
[
0
]
=
malloc
(
FIELD_OFFSET
(
doub_carr_1_t
,
a
[
3
]));
dc
->
a
[
0
]
=
HeapAlloc
(
GetProcessHeap
(),
0
,
FIELD_OFFSET
(
doub_carr_1_t
,
a
[
3
]));
dc
->
a
[
0
]
->
n
=
3
;
dc
->
a
[
0
]
->
a
[
0
]
=
5
;
dc
->
a
[
0
]
->
a
[
1
]
=
1
;
dc
->
a
[
0
]
->
a
[
2
]
=
8
;
dc
->
a
[
1
]
=
malloc
(
FIELD_OFFSET
(
doub_carr_1_t
,
a
[
2
]));
dc
->
a
[
1
]
=
HeapAlloc
(
GetProcessHeap
(),
0
,
FIELD_OFFSET
(
doub_carr_1_t
,
a
[
2
]));
dc
->
a
[
1
]
->
n
=
2
;
dc
->
a
[
1
]
->
a
[
0
]
=
2
;
dc
->
a
[
1
]
->
a
[
1
]
=
3
;
ok
(
sum_doub_carr
(
dc
)
==
19
,
"RPC sum_doub_carr
\n
"
);
free
(
dc
->
a
[
0
]);
free
(
dc
->
a
[
1
]);
free
(
dc
);
HeapFree
(
GetProcessHeap
(),
0
,
dc
->
a
[
0
]);
HeapFree
(
GetProcessHeap
(),
0
,
dc
->
a
[
1
]);
HeapFree
(
GetProcessHeap
(),
0
,
dc
);
dc
=
NULL
;
make_pyramid_doub_carr
(
4
,
&
dc
);
...
...
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