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
1603a51d
Commit
1603a51d
authored
Nov 15, 2008
by
Damjan Jovanovic
Committed by
Alexandre Julliard
Nov 18, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Handle NULL rectangles in WM_NCCALCSIZE.
parent
0aca97a2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
nonclient.c
dlls/user32/nonclient.c
+3
-0
win.c
dlls/user32/tests/win.c
+5
-0
No files found.
dlls/user32/nonclient.c
View file @
1603a51d
...
...
@@ -417,6 +417,9 @@ LRESULT NC_HandleNCCalcSize( HWND hwnd, RECT *winRect )
LONG
style
=
GetWindowLongW
(
hwnd
,
GWL_STYLE
);
LONG
exStyle
=
GetWindowLongW
(
hwnd
,
GWL_EXSTYLE
);
if
(
winRect
==
NULL
)
return
0
;
if
(
cls_style
&
CS_VREDRAW
)
result
|=
WVR_VREDRAW
;
if
(
cls_style
&
CS_HREDRAW
)
result
|=
WVR_HREDRAW
;
...
...
dlls/user32/tests/win.c
View file @
1603a51d
...
...
@@ -781,6 +781,7 @@ static void test_nonclient_area(HWND hwnd)
RECT
rc_window
,
rc_client
,
rc
;
BOOL
menu
;
BOOL
is_win9x
=
GetWindowLongPtrW
(
hwnd
,
GWLP_WNDPROC
)
==
0
;
LRESULT
ret
;
style
=
GetWindowLongA
(
hwnd
,
GWL_STYLE
);
exstyle
=
GetWindowLongA
(
hwnd
,
GWL_EXSTYLE
);
...
...
@@ -809,6 +810,10 @@ static void test_nonclient_area(HWND hwnd)
trace
(
"calc client: (%d,%d)-(%d,%d)
\n
"
,
rc
.
left
,
rc
.
top
,
rc
.
right
,
rc
.
bottom
);
ok
(
EqualRect
(
&
rc
,
&
rc_client
),
"client rect does not match: style:exstyle=0x%08x:0x%08x, menu=%d
\n
"
,
style
,
exstyle
,
menu
);
/* NULL rectangle shouldn't crash */
ret
=
DefWindowProcA
(
hwnd
,
WM_NCCALCSIZE
,
0
,
0
);
ok
(
ret
==
0
,
"NULL rectangle returned %ld instead of 0
\n
"
,
ret
);
/* Win9x doesn't like WM_NCCALCSIZE with synthetic data and crashes */
;
if
(
is_win9x
)
return
;
...
...
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