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
458ebf42
Commit
458ebf42
authored
Dec 14, 2006
by
Francois Gouget
Committed by
Alexandre Julliard
Dec 14, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32/tests: Replace some '#if 0's with 'if (0)'s.
Fix the code so it compiles.
parent
1d4aeae7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
9 deletions
+14
-9
marshal.c
dlls/ole32/tests/marshal.c
+14
-9
No files found.
dlls/ole32/tests/marshal.c
View file @
458ebf42
...
...
@@ -1456,9 +1456,11 @@ static void test_proxybuffer(REFIID riid)
ok
(
refs
==
1
,
"Ref count of outer unknown should have been 1 instead of %d
\n
"
,
refs
);
refs
=
IPSFactoryBuffer_Release
(
psfb
);
#if 0 /* not reliable on native. maybe it leaks references! */
ok(refs == 0, "Ref-count leak of %ld on IPSFactoryBuffer\n", refs);
#endif
if
(
0
)
{
/* not reliable on native. maybe it leaks references! */
ok
(
refs
==
0
,
"Ref-count leak of %d on IPSFactoryBuffer
\n
"
,
refs
);
}
refs
=
IUnknown_Release
((
IUnknown
*
)
lpvtbl
);
ok
(
refs
==
0
,
"Ref-count leak of %d on IRpcProxyBuffer
\n
"
,
refs
);
...
...
@@ -1487,9 +1489,11 @@ static void test_stubbuffer(REFIID riid)
ok_ole_success
(
hr
,
IPSFactoryBuffer_CreateStub
);
refs
=
IPSFactoryBuffer_Release
(
psfb
);
#if 0 /* not reliable on native. maybe it leaks references */
ok(refs == 0, "Ref-count leak of %ld on IPSFactoryBuffer\n", refs);
#endif
if
(
0
)
{
/* not reliable on native. maybe it leaks references */
ok
(
refs
==
0
,
"Ref-count leak of %d on IPSFactoryBuffer
\n
"
,
refs
);
}
ok_more_than_one_lock
();
...
...
@@ -1732,11 +1736,12 @@ static void test_freethreadedmarshaler(void)
/* native doesn't allow us to unmarshal or release the stream data,
* presumably because it wants us to call CoMarshalInterface instead */
#if 0
if
(
0
)
{
/* local normal marshaling */
IStream_Seek
(
pStream
,
llZero
,
STREAM_SEEK_SET
,
NULL
);
hr = IMarshal_MarshalInterface(pFTMarshal, pStream, IID_IClassFactory, (IUnknown*)&Test_ClassFactory, MSHCTX_LOCAL, NULL, MSHLFLAGS_NORMAL);
hr
=
IMarshal_MarshalInterface
(
pFTMarshal
,
pStream
,
&
IID_IClassFactory
,
(
IUnknown
*
)
&
Test_ClassFactory
,
MSHCTX_LOCAL
,
NULL
,
MSHLFLAGS_NORMAL
);
ok_ole_success
(
hr
,
IMarshal_MarshalInterface
);
ok_more_than_one_lock
();
...
...
@@ -1748,7 +1753,7 @@ static void test_freethreadedmarshaler(void)
ok_ole_success
(
hr
,
IMarshal_ReleaseMarshalData
);
ok_no_locks
();
#endif
}
/* inproc table-strong marshaling */
...
...
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