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
7fe67b15
Commit
7fe67b15
authored
Feb 05, 2009
by
Rob Shearman
Committed by
Alexandre Julliard
Feb 06, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpcrt4: Change the test of CStdStubBuffer->pPSFactory to only test for the field not being NULL.
The address varies on older versions of Windows and isn't really important.
parent
40660894
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
cstub.c
dlls/rpcrt4/tests/cstub.c
+2
-4
No files found.
dlls/rpcrt4/tests/cstub.c
View file @
7fe67b15
...
@@ -619,15 +619,13 @@ static void test_CreateStub(IPSFactoryBuffer *ppsf)
...
@@ -619,15 +619,13 @@ static void test_CreateStub(IPSFactoryBuffer *ppsf)
IUnknown
*
obj
=
(
IUnknown
*
)
&
vtbl
;
IUnknown
*
obj
=
(
IUnknown
*
)
&
vtbl
;
IRpcStubBuffer
*
pstub
=
create_stub
(
ppsf
,
&
IID_if1
,
obj
,
S_OK
);
IRpcStubBuffer
*
pstub
=
create_stub
(
ppsf
,
&
IID_if1
,
obj
,
S_OK
);
CStdStubBuffer
*
cstd_stub
=
(
CStdStubBuffer
*
)
pstub
;
CStdStubBuffer
*
cstd_stub
=
(
CStdStubBuffer
*
)
pstub
;
const
CInterfaceStubHeader
*
header
=
((
const
CInterfaceStubHeader
*
)
cstd_stub
->
lpVtbl
)
-
1
;
const
CInterfaceStubHeader
*
header
=
&
CONTAINING_RECORD
(
cstd_stub
->
lpVtbl
,
const
CInterfaceStubVtbl
,
Vtbl
)
->
header
;
ok
(
IsEqualIID
(
header
->
piid
,
&
IID_if1
),
"header iid differs
\n
"
);
ok
(
IsEqualIID
(
header
->
piid
,
&
IID_if1
),
"header iid differs
\n
"
);
ok
(
cstd_stub
->
RefCount
==
1
,
"ref count %d
\n
"
,
cstd_stub
->
RefCount
);
ok
(
cstd_stub
->
RefCount
==
1
,
"ref count %d
\n
"
,
cstd_stub
->
RefCount
);
/* 0xdeadbeef returned from create_stub_test_QI */
/* 0xdeadbeef returned from create_stub_test_QI */
ok
(
cstd_stub
->
pvServerObject
==
(
void
*
)
0xdeadbeef
,
"pvServerObject %p
\n
"
,
cstd_stub
->
pvServerObject
);
ok
(
cstd_stub
->
pvServerObject
==
(
void
*
)
0xdeadbeef
,
"pvServerObject %p
\n
"
,
cstd_stub
->
pvServerObject
);
ok
(
cstd_stub
->
pPSFactory
==
ppsf
||
ok
(
cstd_stub
->
pPSFactory
!=
NULL
,
"pPSFactory was NULL
\n
"
);
broken
(
cstd_stub
->
pPSFactory
==
(
void
*
)
0x00001000
)
/* Win9x & NT4 */
,
"pPSFactory was %p instead of %p
\n
"
,
cstd_stub
->
pPSFactory
,
ppsf
);
vtbl
=
&
create_stub_test_fail_vtbl
;
vtbl
=
&
create_stub_test_fail_vtbl
;
pstub
=
create_stub
(
ppsf
,
&
IID_if1
,
obj
,
E_NOINTERFACE
);
pstub
=
create_stub
(
ppsf
,
&
IID_if1
,
obj
,
E_NOINTERFACE
);
...
...
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