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
bdd7be37
Commit
bdd7be37
authored
Aug 15, 2016
by
André Hentschel
Committed by
Alexandre Julliard
Aug 16, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32/tests: Fill in the delay IAT to succeed on Win10.
Signed-off-by:
André Hentschel
<
nerv@dawncrow.de
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
f2fa2448
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
3 deletions
+14
-3
loader.c
dlls/kernel32/tests/loader.c
+14
-3
No files found.
dlls/kernel32/tests/loader.c
View file @
bdd7be37
...
...
@@ -2608,7 +2608,7 @@ static PVOID WINAPI failuredllhook(ULONG ul, DELAYLOAD_INFO* pd)
ok
(
!!
pd
->
ThunkAddress
,
"no ThunkAddress supplied
\n
"
);
if
(
pd
->
ThunkAddress
)
ok
(
pd
->
ThunkAddress
->
u1
.
Ordinal
==
0
,
"expected 0, got %x
\n
"
,
(
UINT
)
pd
->
ThunkAddress
->
u1
.
Ordinal
);
ok
(
pd
->
ThunkAddress
->
u1
.
Ordinal
,
"no ThunkAddress value supplied
\n
"
);
ok
(
!!
pd
->
TargetDllName
,
"no TargetDllName supplied
\n
"
);
if
(
pd
->
TargetDllName
)
...
...
@@ -2782,9 +2782,20 @@ static void test_ResolveDelayLoadedAPI(void)
ret
=
WriteFile
(
hfile
,
test_func
,
sizeof
(
test_func
),
&
dummy
,
NULL
);
ok
(
ret
,
"WriteFile error %d
\n
"
,
GetLastError
());
file_size
=
GetFileSize
(
hfile
,
NULL
);
SetFilePointer
(
hfile
,
idd
.
ImportAddressTableRVA
,
NULL
,
SEEK_SET
);
for
(
i
=
0
;
i
<
sizeof
(
td
)
/
sizeof
(
td
[
0
]);
i
++
)
{
/* 0x1a00 is an empty space between delay data and extended delay data, real thunks are not necessary */
itd32
.
u1
.
Function
=
nt_header
.
OptionalHeader
.
ImageBase
+
0x1a00
+
i
*
0x20
;
SetLastError
(
0xdeadbeef
);
ret
=
WriteFile
(
hfile
,
&
itd32
,
sizeof
(
itd32
),
&
dummy
,
NULL
);
ok
(
ret
,
"WriteFile error %d
\n
"
,
GetLastError
());
}
itd32
.
u1
.
Function
=
0
;
SetLastError
(
0xdeadbeef
);
ret
=
WriteFile
(
hfile
,
filler
,
idd
.
ImportNameTableRVA
-
file_size
,
&
dummy
,
NULL
);
ret
=
WriteFile
(
hfile
,
&
itd32
,
sizeof
(
itd32
)
,
&
dummy
,
NULL
);
ok
(
ret
,
"WriteFile error %d
\n
"
,
GetLastError
());
for
(
i
=
0
;
i
<
sizeof
(
td
)
/
sizeof
(
td
[
0
]);
i
++
)
...
...
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