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
8a20d6e8
Commit
8a20d6e8
authored
Sep 06, 2018
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Sep 06, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntoskrnl: Fix cross-compilation of the driver tests.
Signed-off-by:
Dmitry Timoshkov
<
dmitry@baikal.ru
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
f141ed7a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
driver.c
dlls/ntoskrnl.exe/tests/driver.c
+2
-2
driver.h
dlls/ntoskrnl.exe/tests/driver.h
+7
-0
No files found.
dlls/ntoskrnl.exe/tests/driver.c
View file @
8a20d6e8
...
@@ -75,8 +75,8 @@ static void WINAPIV ok_(const char *file, int line, int condition, const char *m
...
@@ -75,8 +75,8 @@ static void WINAPIV ok_(const char *file, int line, int condition, const char *m
const
char
*
current_file
;
const
char
*
current_file
;
__ms_va_list
args
;
__ms_va_list
args
;
if
(
!
(
current_file
=
strrchr
(
file
,
'/'
))
&&
if
(
!
(
current_file
=
drv_
strrchr
(
file
,
'/'
))
&&
!
(
current_file
=
strrchr
(
file
,
'\\'
)))
!
(
current_file
=
drv_
strrchr
(
file
,
'\\'
)))
current_file
=
file
;
current_file
=
file
;
else
else
current_file
++
;
current_file
++
;
...
...
dlls/ntoskrnl.exe/tests/driver.h
View file @
8a20d6e8
...
@@ -35,3 +35,10 @@ struct test_input
...
@@ -35,3 +35,10 @@ struct test_input
int
winetest_debug
;
int
winetest_debug
;
WCHAR
path
[
1
];
WCHAR
path
[
1
];
};
};
static
inline
char
*
drv_strrchr
(
const
char
*
str
,
char
ch
)
{
char
*
ret
=
NULL
;
do
{
if
(
*
str
==
ch
)
ret
=
(
char
*
)(
ULONG_PTR
)
str
;
}
while
(
*
str
++
);
return
ret
;
}
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