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
bb411cfb
Commit
bb411cfb
authored
Apr 04, 2011
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Apr 05, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: DefDlgProc on WM_QUIT should repost it and terminate the dialog message loop.
parent
1a65e209
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
6 deletions
+8
-6
dialog.c
dlls/user32/dialog.c
+7
-1
msg.c
dlls/user32/tests/msg.c
+1
-5
No files found.
dlls/user32/dialog.c
View file @
bb411cfb
...
...
@@ -805,7 +805,13 @@ INT DIALOG_DoDialogBox( HWND hwnd, HWND owner )
/* No message present -> send ENTERIDLE and wait */
SendMessageW
(
ownerMsg
,
WM_ENTERIDLE
,
MSGF_DIALOGBOX
,
(
LPARAM
)
hwnd
);
}
if
(
!
GetMessageW
(
&
msg
,
0
,
0
,
0
))
break
;
GetMessageW
(
&
msg
,
0
,
0
,
0
);
}
if
(
msg
.
message
==
WM_QUIT
)
{
PostQuitMessage
(
msg
.
wParam
);
dlgInfo
->
flags
|=
DF_END
;
}
if
(
!
IsWindow
(
hwnd
))
return
0
;
...
...
dlls/user32/tests/msg.c
View file @
bb411cfb
...
...
@@ -10124,19 +10124,15 @@ static void test_quit_message(void)
flush_events
();
flush_sequence
();
ret
=
DialogBoxParam
(
GetModuleHandle
(
0
),
"TEST_EMPTY_DIALOG"
,
0
,
wm_quit_dlg_proc
,
0
);
todo_wine
ok
(
ret
==
1
,
"expected 1, got %d
\n
"
,
ret
);
ok_sequence
(
WmQuitDialogSeq
,
"WmQuitDialogSeq"
,
TRU
E
);
ok_sequence
(
WmQuitDialogSeq
,
"WmQuitDialogSeq"
,
FALS
E
);
memset
(
&
msg
,
0xab
,
sizeof
(
msg
));
ret
=
PeekMessage
(
&
msg
,
NULL
,
0
,
0
,
PM_REMOVE
);
todo_wine
ok
(
ret
,
"PeekMessage failed
\n
"
);
if
(
ret
)
{
ok
(
msg
.
message
==
WM_QUIT
,
"Received message 0x%04x instead of WM_QUIT
\n
"
,
msg
.
message
);
ok
(
msg
.
wParam
==
0x1234
,
"wParam was 0x%lx instead of 0x1234
\n
"
,
msg
.
wParam
);
ok
(
msg
.
lParam
==
0
,
"lParam was 0x%lx instead of 0
\n
"
,
msg
.
lParam
);
}
}
static
const
struct
message
WmMouseHoverSeq
[]
=
{
{
WM_MOUSEACTIVATE
,
sent
|
optional
},
/* we can get those when moving the mouse in focus-follow-mouse mode under X11 */
...
...
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