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
9642714d
Commit
9642714d
authored
Dec 13, 2007
by
Rob Shearman
Committed by
Alexandre Julliard
Dec 13, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpcrt4: Add tests for freeing non-NdrAllocate allocated memory blocks.
parent
00db711c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
ndr_marshall.c
dlls/rpcrt4/tests/ndr_marshall.c
+16
-0
No files found.
dlls/rpcrt4/tests/ndr_marshall.c
View file @
9642714d
...
...
@@ -1195,6 +1195,14 @@ todo_wine {
NdrPointerFree
(
&
StubMsg
,
mem
,
fmtstr_conf_str
);
ok
(
my_free_called
==
1
,
"free called %d
\n
"
,
my_free_called
);
mem
=
my_alloc
(
10
);
my_free_called
=
0
;
StubMsg
.
Buffer
=
StubMsg
.
BufferStart
;
NdrPointerFree
(
&
StubMsg
,
mem
,
fmtstr_conf_str
);
todo_wine
{
ok
(
my_free_called
==
1
,
"free called %d
\n
"
,
my_free_called
);
}
/* Server */
my_alloc_called
=
0
;
StubMsg
.
IsClient
=
0
;
...
...
@@ -1232,6 +1240,14 @@ todo_wine {
ok
(
my_alloc_called
==
0
,
"alloc called %d
\n
"
,
my_alloc_called
);
}
mem
=
my_alloc
(
10
);
my_free_called
=
0
;
StubMsg
.
Buffer
=
StubMsg
.
BufferStart
;
NdrPointerFree
(
&
StubMsg
,
mem
,
fmtstr_conf_str
);
todo_wine
{
ok
(
my_free_called
==
1
,
"free called %d
\n
"
,
my_free_called
);
}
HeapFree
(
GetProcessHeap
(),
0
,
mem_orig
);
HeapFree
(
GetProcessHeap
(),
0
,
StubMsg
.
RpcMsg
->
Buffer
);
}
...
...
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