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
096524c5
Commit
096524c5
authored
Dec 26, 2001
by
Mike McCormack
Committed by
Alexandre Julliard
Dec 26, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use alertable waits in PeekMessage16 and GetMessage16 so we can
process APCs for 16bit comms.
parent
64295971
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
0 deletions
+9
-0
comm16.c
dlls/user/comm16.c
+2
-0
msg16.c
dlls/user/msg16.c
+5
-0
user.h
include/user.h
+2
-0
No files found.
dlls/user/comm16.c
View file @
096524c5
...
...
@@ -568,6 +568,7 @@ INT16 WINAPI OpenComm16(LPCSTR device,UINT16 cbInQueue,UINT16 cbOutQueue)
COM
[
port
].
write_ov
.
hEvent
=
CreateEventA
(
NULL
,
0
,
0
,
NULL
);
comm_waitread
(
&
COM
[
port
]
);
USER16_AlertableWait
++
;
return
port
;
}
...
...
@@ -612,6 +613,7 @@ INT16 WINAPI CloseComm16(INT16 cid)
UnMapLS
(
COM
[
cid
].
seg_unknown
);
CloseHandle
(
COM
[
cid
].
read_ov
.
hEvent
);
CloseHandle
(
COM
[
cid
].
write_ov
.
hEvent
);
USER16_AlertableWait
--
;
/* free buffers */
free
(
ptr
->
outbuf
);
...
...
dlls/user/msg16.c
View file @
096524c5
...
...
@@ -16,6 +16,7 @@
DEFAULT_DEBUG_CHANNEL
(
msg
);
DWORD
USER16_AlertableWait
=
0
;
/***********************************************************************
* SendMessage (USER.111)
...
...
@@ -147,6 +148,8 @@ BOOL16 WINAPI PeekMessage32_16( MSG32_16 *msg16, HWND16 hwnd16,
MSG
msg
;
HWND
hwnd
=
WIN_Handle32
(
hwnd16
);
if
(
USER16_AlertableWait
)
MsgWaitForMultipleObjectsEx
(
0
,
NULL
,
1
,
0
,
MWMO_ALERTABLE
);
if
(
!
PeekMessageW
(
&
msg
,
hwnd
,
first
,
last
,
flags
))
return
FALSE
;
msg16
->
msg
.
hwnd
=
WIN_Handle16
(
msg
.
hwnd
);
...
...
@@ -183,6 +186,8 @@ BOOL16 WINAPI GetMessage32_16( MSG32_16 *msg16, HWND16 hwnd16, UINT16 first,
do
{
if
(
USER16_AlertableWait
)
MsgWaitForMultipleObjectsEx
(
0
,
NULL
,
INFINITE
,
0
,
MWMO_ALERTABLE
);
GetMessageW
(
&
msg
,
hwnd
,
first
,
last
);
msg16
->
msg
.
hwnd
=
WIN_Handle16
(
msg
.
hwnd
);
msg16
->
msg
.
lParam
=
msg
.
lParam
;
...
...
include/user.h
View file @
096524c5
...
...
@@ -120,4 +120,6 @@ extern WINE_LOOK TWEAK_WineLook;
/* gray brush cache */
extern
HBRUSH
CACHE_GetPattern55AABrush
(
void
);
extern
DWORD
USER16_AlertableWait
;
#endif
/* __WINE_USER_H */
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