Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
1ed73fae
Commit
1ed73fae
authored
May 16, 2003
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Call the user signal proc for exe modules too, to avoid duplicating
the module cleanup code.
parent
dcff0007
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
21 deletions
+3
-21
kernel32.spec
dlls/kernel/kernel32.spec
+0
-1
user_main.c
dlls/user/user_main.c
+0
-15
module.c
loader/ne/module.c
+3
-5
No files found.
dlls/kernel/kernel32.spec
View file @
1ed73fae
...
...
@@ -1088,7 +1088,6 @@
@ stdcall GetModuleFileName16(long ptr long)
@ stdcall GetModuleHandle16(str)
@ stdcall GetModuleName16(long ptr long)
@ stdcall GetModuleUsage16(long)
@ stdcall GetSelectorBase(long)
@ stdcall GetSelectorLimit16(long)
@ stdcall GetThreadQueue16(long)
...
...
dlls/user/user_main.c
View file @
1ed73fae
...
...
@@ -292,21 +292,6 @@ static void thread_detach(void)
WIN_DestroyThreadWindows
(
GetDesktopWindow
()
);
QUEUE_DeleteMsgQueue
();
if
(
!
(
NtCurrentTeb
()
->
tibflags
&
TEBF_WIN32
))
{
HMODULE16
hModule
=
GetExePtr
(
MapHModuleLS
(
0
)
);
/* FIXME: maybe destroy menus (Windows only complains about them
* but does nothing);
*/
if
(
GetModuleUsage16
(
hModule
)
<=
1
)
{
/* ModuleUnload() in "Internals" */
/* HOOK_FreeModuleHooks( hModule ); */
CLASS_FreeModuleClasses
(
hModule
);
CURSORICON_FreeModuleIcons
(
hModule
);
}
}
exiting_thread_id
=
0
;
}
...
...
loader/ne/module.c
View file @
1ed73fae
...
...
@@ -1282,13 +1282,11 @@ static BOOL16 NE_FreeModule( HMODULE16 hModule, BOOL call_wep )
if
(
call_wep
&&
!
(
pModule
->
flags
&
NE_FFLAGS_WIN32
))
{
/* Free the objects owned by the DLL module */
NE_CallUserSignalProc
(
hModule
,
USIG16_DLL_UNLOAD
);
if
(
pModule
->
flags
&
NE_FFLAGS_LIBMODULE
)
{
MODULE_CallWEP
(
hModule
);
/* Free the objects owned by the DLL module */
NE_CallUserSignalProc
(
hModule
,
USIG16_DLL_UNLOAD
);
}
else
call_wep
=
FALSE
;
/* We are freeing a task -> no more WEPs */
}
...
...
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