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
0be24af7
Commit
0be24af7
authored
Jan 20, 1999
by
Ulrich Weigand
Committed by
Alexandre Julliard
Jan 20, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Handle (console) applications that never created a queue correctly
in USER_AppExit(); call InitThreadInput() in InitApp().
parent
a8975186
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
24 deletions
+23
-24
user.c
windows/user.c
+23
-24
No files found.
windows/user.c
View file @
0be24af7
...
...
@@ -130,8 +130,6 @@ static void USER_InstallRsrcHandler( HINSTANCE16 hInstance )
*/
INT16
WINAPI
InitApp
(
HINSTANCE16
hInstance
)
{
int
queueSize
;
/* InitTask() calls LibMain()'s of implicitly loaded DLLs
* prior to InitApp() so there is no clean way to do
* SetTaskSignalHandler() in time. So, broken Windows bypasses
...
...
@@ -145,9 +143,8 @@ INT16 WINAPI InitApp( HINSTANCE16 hInstance )
/* FIXME: should set a USER-specific handler that displays a msg box */
INT_SetPMHandler
(
0
,
INT_GetPMHandler
(
0xff
)
);
/* Create task message queue */
queueSize
=
GetProfileInt32A
(
"windows"
,
"DefaultQueueSize"
,
8
);
if
(
!
SetMessageQueue32
(
queueSize
))
return
0
;
/* Create task message queue */
if
(
!
GetFastQueue
()
)
return
0
;
return
1
;
}
...
...
@@ -166,32 +163,34 @@ static void USER_ModuleUnload( HMODULE16 hModule )
*/
static
void
USER_AppExit
(
HTASK16
hTask
,
HINSTANCE16
hInstance
,
HQUEUE16
hQueue
)
{
/* FIXME: empty clipboard if needed, maybe destroy menus (Windows
* only complains about them but does nothing);
*/
WND
*
desktop
=
WIN_GetDesktop
();
if
(
hQueue
)
{
/* FIXME: empty clipboard if needed, maybe destroy menus (Windows
* only complains about them but does nothing);
*/
/* Patch desktop window */
if
(
desktop
->
hmemTaskQ
==
hQueue
)
desktop
->
hmemTaskQ
=
GetTaskQueue
(
TASK_GetNextTask
(
hTask
));
WND
*
desktop
=
WIN_GetDesktop
();
/* Patch resident popup menu window */
MENU_PatchResidentPopup
(
hQueue
,
NULL
);
/* Patch desktop window */
if
(
desktop
->
hmemTaskQ
==
hQueue
)
desktop
->
hmemTaskQ
=
GetTaskQueue
(
TASK_GetNextTask
(
hTask
));
TIMER_RemoveQueueTimers
(
hQueue
);
/* Patch resident popup menu window */
MENU_PatchResidentPopup
(
hQueue
,
NULL
);
QUEUE_FlushMessages
(
hQueue
);
HOOK_FreeQueueHooks
(
hQueue
);
TIMER_RemoveQueueTimers
(
hQueue
);
QUEUE_SetExitingQueue
(
hQueue
);
WIN_ResetQueueWindows
(
desktop
,
hQueue
,
(
HQUEUE16
)
0
);
CLIPBOARD_ResetLock
(
hQueue
,
0
);
QUEUE_SetExitingQueue
(
0
);
QUEUE_FlushMessages
(
hQueue
);
HOOK_FreeQueueHooks
(
hQueue
);
/* Free the message queue */
QUEUE_SetExitingQueue
(
hQueue
);
WIN_ResetQueueWindows
(
desktop
,
hQueue
,
(
HQUEUE16
)
0
);
CLIPBOARD_ResetLock
(
hQueue
,
0
);
QUEUE_SetExitingQueue
(
0
);
QUEUE_DeleteMsgQueue
(
hQueue
);
/* Free the message queue */
QUEUE_DeleteMsgQueue
(
hQueue
);
}
/* ModuleUnload() in "Internals" */
...
...
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