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
6d9350fa
Commit
6d9350fa
authored
Oct 31, 2003
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use a timeout when sending broadcast messages.
parent
736d96b5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
15 additions
and
7 deletions
+15
-7
client.c
dlls/user/dde/client.c
+2
-1
focus.c
dlls/user/focus.c
+2
-1
painting.c
windows/painting.c
+2
-1
syscolor.c
windows/syscolor.c
+4
-2
sysparams.c
windows/sysparams.c
+5
-2
No files found.
dlls/user/dde/client.c
View file @
6d9350fa
...
...
@@ -182,7 +182,8 @@ HCONV WINAPI DdeConnect(DWORD idInst, HSZ hszService, HSZ hszTopic,
LeaveCriticalSection
(
&
WDML_CritSect
);
/* note: sent messages shall not use packing */
SendMessageA
(
HWND_BROADCAST
,
WM_DDE_INITIATE
,
(
WPARAM
)
hwndClient
,
MAKELPARAM
(
aSrv
,
aTpc
));
SendMessageTimeoutW
(
HWND_BROADCAST
,
WM_DDE_INITIATE
,
(
WPARAM
)
hwndClient
,
MAKELPARAM
(
aSrv
,
aTpc
),
SMTO_ABORTIFHUNG
,
2000
,
NULL
);
EnterCriticalSection
(
&
WDML_CritSect
);
...
...
dlls/user/focus.c
View file @
6d9350fa
...
...
@@ -110,7 +110,8 @@ static BOOL set_active_window( HWND hwnd, HWND *prev, BOOL mouse, BOOL focus )
{
/* send palette messages */
if
(
SendMessageW
(
hwnd
,
WM_QUERYNEWPALETTE
,
0
,
0
))
SendMessageW
(
HWND_BROADCAST
,
WM_PALETTEISCHANGING
,
(
WPARAM
)
hwnd
,
0
);
SendMessageTimeoutW
(
HWND_BROADCAST
,
WM_PALETTEISCHANGING
,
(
WPARAM
)
hwnd
,
0
,
SMTO_ABORTIFHUNG
,
2000
,
NULL
);
if
(
!
(
GetWindowLongW
(
hwnd
,
GWL_EXSTYLE
)
&
WS_EX_MANAGED
))
SetWindowPos
(
hwnd
,
HWND_TOP
,
0
,
0
,
0
,
0
,
SWP_NOSIZE
|
SWP_NOMOVE
|
SWP_NOACTIVATE
);
...
...
windows/painting.c
View file @
6d9350fa
...
...
@@ -1467,7 +1467,8 @@ UINT WINAPI UserRealizePalette( HDC hDC )
{
/* send palette change notification */
HWND
hWnd
=
WindowFromDC
(
hDC
);
if
(
hWnd
)
SendMessageA
(
HWND_BROADCAST
,
WM_PALETTECHANGED
,
(
WPARAM
)
hWnd
,
0L
);
if
(
hWnd
)
SendMessageTimeoutW
(
HWND_BROADCAST
,
WM_PALETTECHANGED
,
(
WPARAM
)
hWnd
,
0
,
SMTO_ABORTIFHUNG
,
2000
,
NULL
);
}
return
realized
;
}
windows/syscolor.c
View file @
6d9350fa
...
...
@@ -252,7 +252,8 @@ VOID WINAPI SetSysColors16( INT16 nChanges, const INT16 *lpSysColor,
/* Send WM_SYSCOLORCHANGE message to all windows */
SendMessageA
(
HWND_BROADCAST
,
WM_SYSCOLORCHANGE
,
0
,
0
);
SendMessageTimeoutW
(
HWND_BROADCAST
,
WM_SYSCOLORCHANGE
,
0
,
0
,
SMTO_ABORTIFHUNG
,
2000
,
NULL
);
/* Repaint affected portions of all visible windows */
...
...
@@ -276,7 +277,8 @@ BOOL WINAPI SetSysColors( INT nChanges, const INT *lpSysColor,
/* Send WM_SYSCOLORCHANGE message to all windows */
SendMessageA
(
HWND_BROADCAST
,
WM_SYSCOLORCHANGE
,
0
,
0
);
SendMessageTimeoutW
(
HWND_BROADCAST
,
WM_SYSCOLORCHANGE
,
0
,
0
,
SMTO_ABORTIFHUNG
,
2000
,
NULL
);
/* Repaint affected portions of all visible windows */
...
...
windows/sysparams.c
View file @
6d9350fa
...
...
@@ -354,13 +354,16 @@ static HKEY get_volatile_regkey(void)
*/
void
SYSPARAMS_NotifyChange
(
UINT
uiAction
,
UINT
fWinIni
)
{
static
const
WCHAR
emptyW
[
1
];
if
(
notify_change
)
{
if
(
fWinIni
&
SPIF_UPDATEINIFILE
)
{
if
(
fWinIni
&
(
SPIF_SENDWININICHANGE
|
SPIF_SENDCHANGE
))
SendMessageA
(
HWND_BROADCAST
,
WM_SETTINGCHANGE
,
uiAction
,
(
LPARAM
)
""
);
SendMessageTimeoutW
(
HWND_BROADCAST
,
WM_SETTINGCHANGE
,
uiAction
,
(
LPARAM
)
emptyW
,
SMTO_ABORTIFHUNG
,
2000
,
NULL
);
}
else
{
...
...
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