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
d69340cd
Commit
d69340cd
authored
Feb 18, 2009
by
Rein Klazes
Committed by
Alexandre Julliard
Feb 18, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Do not handle WM_ENDSESSION in DefWindowProc() with test.
parent
66255772
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
5 deletions
+17
-5
defwnd.c
dlls/user32/defwnd.c
+0
-5
msg.c
dlls/user32/tests/msg.c
+17
-0
No files found.
dlls/user32/defwnd.c
View file @
d69340cd
...
@@ -662,11 +662,6 @@ static LRESULT DEFWND_DefWinProc( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lPa
...
@@ -662,11 +662,6 @@ static LRESULT DEFWND_DefWinProc( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lPa
case
WM_QUERYENDSESSION
:
case
WM_QUERYENDSESSION
:
return
1
;
return
1
;
case
WM_ENDSESSION
:
if
(
wParam
)
PostQuitMessage
(
0
);
return
0
;
case
WM_SETICON
:
case
WM_SETICON
:
{
{
HICON
ret
;
HICON
ret
;
...
...
dlls/user32/tests/msg.c
View file @
d69340cd
...
@@ -11351,6 +11351,22 @@ static void test_paintingloop(void)
...
@@ -11351,6 +11351,22 @@ static void test_paintingloop(void)
DestroyWindow
(
hwnd
);
DestroyWindow
(
hwnd
);
}
}
static
void
test_defwinproc
(
void
)
{
HWND
hwnd
;
MSG
msg
;
int
gotwmquit
=
FALSE
;
hwnd
=
CreateWindowExA
(
0
,
"static"
,
"test_defwndproc"
,
WS_POPUP
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
NULL
);
assert
(
hwnd
);
DefWindowProcA
(
hwnd
,
WM_ENDSESSION
,
1
,
0
);
while
(
PeekMessageA
(
&
msg
,
0
,
0
,
0
,
PM_REMOVE
))
{
if
(
msg
.
message
==
WM_QUIT
)
gotwmquit
=
TRUE
;
DispatchMessageA
(
&
msg
);
}
ok
(
gotwmquit
==
FALSE
,
"Unexpected WM_QUIT message!
\n
"
);
DestroyWindow
(
hwnd
);
}
START_TEST
(
msg
)
START_TEST
(
msg
)
{
{
BOOL
ret
;
BOOL
ret
;
...
@@ -11432,6 +11448,7 @@ START_TEST(msg)
...
@@ -11432,6 +11448,7 @@ START_TEST(msg)
test_dbcs_wm_char
();
test_dbcs_wm_char
();
test_menu_messages
();
test_menu_messages
();
test_paintingloop
();
test_paintingloop
();
test_defwinproc
();
/* keep it the last test, under Windows it tends to break the tests
/* keep it the last test, under Windows it tends to break the tests
* which rely on active/foreground windows being correct.
* which rely on active/foreground windows being correct.
*/
*/
...
...
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