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
7de3f1b5
Commit
7de3f1b5
authored
Apr 19, 2013
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Apr 19, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32: Check whether FreeLibrary actually has unloaded the module.
parent
448a44ca
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
loader.c
dlls/kernel32/tests/loader.c
+9
-2
No files found.
dlls/kernel32/tests/loader.c
View file @
7de3f1b5
...
...
@@ -1259,14 +1259,21 @@ todo_wine
CloseHandle
(
handle
);
CloseHandle
(
process
);
SetLastError
(
0xdeadbeef
);
handle
=
GetModuleHandle
(
"winver.exe"
);
ok
(
!
handle
,
"winver.exe shouldn't be loaded yet
\n
"
);
SetLastError
(
0xdeadbeef
);
handle
=
LoadLibrary
(
"winver.exe"
);
ok
(
handle
!=
0
,
"LoadLibrary error %d
\n
"
,
GetLastError
());
SetLastError
(
0xdeadbeef
);
ret
=
FreeLibrary
(
handle
);
ok
(
ret
,
"LoadLibrary error %d
\n
"
,
GetLastError
());
ok
(
ret
,
"FreeLibrary error %d
\n
"
,
GetLastError
());
handle
=
GetModuleHandle
(
"winver.exe"
);
/* manual call to LdrShutdownProcess doesn't prevent module unloading */
if
(
param
&&
test_dll_phase
!=
4
)
ok
(
handle
!=
0
,
"winver.exe should not be unloaded
\n
"
);
else
todo_wine
ok
(
!
handle
||
broken
(
handle
!=
0
)
/* before win7 */
,
"winver.exe should be unloaded
\n
"
);
SetLastError
(
0xdeadbeef
);
ret
=
WaitForDebugEvent
(
&
de
,
0
);
...
...
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