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
55230ba6
Commit
55230ba6
authored
Sep 24, 2009
by
Ge van Geldorp
Committed by
Alexandre Julliard
Sep 24, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpcrt4/tests: Fix cstub test on Win7.
parent
75de8dc9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
2 deletions
+24
-2
cstub.c
dlls/rpcrt4/tests/cstub.c
+24
-2
No files found.
dlls/rpcrt4/tests/cstub.c
View file @
55230ba6
...
...
@@ -408,6 +408,28 @@ static int __stdcall iid_lookup( const IID * pIID, int * pIndex )
}
static
BOOL
check_address
(
void
*
actual
,
void
*
expected
)
{
static
void
*
ole32_start
=
NULL
;
static
void
*
ole32_end
=
NULL
;
if
(
actual
==
expected
)
return
TRUE
;
/* On Win7, actual can be located inside ole32.dll */
if
(
ole32_start
==
NULL
||
ole32_end
==
NULL
)
{
PIMAGE_NT_HEADERS
nt_headers
;
ole32_start
=
(
void
*
)
GetModuleHandleA
(
"ole32.dll"
);
if
(
ole32_start
==
NULL
)
return
FALSE
;
nt_headers
=
(
PIMAGE_NT_HEADERS
)((
char
*
)
ole32_start
+
((
PIMAGE_DOS_HEADER
)
ole32_start
)
->
e_lfanew
);
ole32_end
=
(
void
*
)((
char
*
)
ole32_start
+
nt_headers
->
OptionalHeader
.
SizeOfImage
);
}
return
ole32_start
<=
actual
&&
actual
<
ole32_end
;
}
static
const
ExtendedProxyFileInfo
my_proxy_file_info
=
{
(
const
PCInterfaceProxyVtblList
*
)
&
cstub_ProxyVtblList
,
...
...
@@ -477,7 +499,7 @@ static IPSFactoryBuffer *test_NdrDllGetClassObject(void)
ok(stub_vtbl[i]->Vtbl.name != CStd_##name, #name "vtbl %d updated %p %p\n", \
i, stub_vtbl[i]->Vtbl.name, CStd_##name )
#define VTBL_TEST_CHANGE_TO(name, i) \
ok(
stub_vtbl[i]->Vtbl.name == CStd_##name
, #name "vtbl %d not updated %p %p\n", \
ok(
check_address(stub_vtbl[i]->Vtbl.name, CStd_##name)
, #name "vtbl %d not updated %p %p\n", \
i, stub_vtbl[i]->Vtbl.name, CStd_##name )
#define VTBL_TEST_ZERO(name, i) \
ok(stub_vtbl[i]->Vtbl.name == NULL, #name "vtbl %d not null %p\n", \
...
...
@@ -528,7 +550,7 @@ static IPSFactoryBuffer *test_NdrDllGetClassObject(void)
VTBL_TEST_CHANGE_TO
(
DebugServerRelease
,
3
);
#define VTBL_PROXY_TEST(i,num,ptr) \
ok(
proxy_vtbl[i]->Vtbl[num] == (ptr
), "wrong proxy %u func %u %p/%p\n", \
ok(
check_address(proxy_vtbl[i]->Vtbl[num], (ptr)
), "wrong proxy %u func %u %p/%p\n", \
(i), (num), proxy_vtbl[i]->Vtbl[num], (ptr) )
#define VTBL_PROXY_TEST_NOT_ZERO(i,num) \
ok( proxy_vtbl[i]->Vtbl[num] != NULL, "wrong proxy %u func %u is NULL\n", (i), (num))
...
...
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