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
9f2c668c
Commit
9f2c668c
authored
Apr 23, 2015
by
Huw Davies
Committed by
Alexandre Julliard
Apr 24, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpcrt4/tests: Fix some tests on Win 8.
parent
4fbaab20
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
1 deletion
+17
-1
cstub.c
dlls/rpcrt4/tests/cstub.c
+17
-1
No files found.
dlls/rpcrt4/tests/cstub.c
View file @
9f2c668c
...
...
@@ -397,6 +397,8 @@ static BOOL check_address(void *actual, void *expected)
{
static
void
*
ole32_start
=
NULL
;
static
void
*
ole32_end
=
NULL
;
static
void
*
combase_start
=
NULL
;
static
void
*
combase_end
=
NULL
;
if
(
actual
==
expected
)
return
TRUE
;
...
...
@@ -412,7 +414,21 @@ static BOOL check_address(void *actual, void *expected)
ole32_end
=
(
void
*
)((
char
*
)
ole32_start
+
nt_headers
->
OptionalHeader
.
SizeOfImage
);
}
return
ole32_start
<=
actual
&&
actual
<
ole32_end
;
if
(
ole32_start
<=
actual
&&
actual
<
ole32_end
)
return
TRUE
;
/* On Win8, actual can be located inside combase.dll */
if
(
combase_start
==
NULL
||
combase_end
==
NULL
)
{
PIMAGE_NT_HEADERS
nt_headers
;
combase_start
=
(
void
*
)
GetModuleHandleA
(
"combase.dll"
);
if
(
combase_start
==
NULL
)
return
FALSE
;
nt_headers
=
(
PIMAGE_NT_HEADERS
)((
char
*
)
combase_start
+
((
PIMAGE_DOS_HEADER
)
combase_start
)
->
e_lfanew
);
combase_end
=
(
void
*
)((
char
*
)
combase_start
+
nt_headers
->
OptionalHeader
.
SizeOfImage
);
}
return
(
combase_start
<=
actual
&&
actual
<
combase_end
);
}
static
const
ExtendedProxyFileInfo
my_proxy_file_info
=
...
...
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