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
6e4e8fb0
Commit
6e4e8fb0
authored
Sep 28, 2010
by
Louis Lenders
Committed by
Alexandre Julliard
Sep 29, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: UpdateWindow doesn't accept a NULL hwnd.
parent
1f93a476
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
0 deletions
+16
-0
painting.c
dlls/user32/painting.c
+6
-0
msg.c
dlls/user32/tests/msg.c
+10
-0
No files found.
dlls/user32/painting.c
View file @
6e4e8fb0
...
...
@@ -1202,6 +1202,12 @@ BOOL WINAPI RedrawWindow( HWND hwnd, const RECT *rect, HRGN hrgn, UINT flags )
*/
BOOL
WINAPI
UpdateWindow
(
HWND
hwnd
)
{
if
(
!
hwnd
)
{
SetLastError
(
ERROR_INVALID_WINDOW_HANDLE
);
return
FALSE
;
}
return
RedrawWindow
(
hwnd
,
NULL
,
0
,
RDW_UPDATENOW
|
RDW_ALLCHILDREN
);
}
...
...
dlls/user32/tests/msg.c
View file @
6e4e8fb0
...
...
@@ -6161,6 +6161,16 @@ static void test_paint_messages(void)
flush_events
();
ok_sequence
(
WmEmptySeq
,
"WmEmptySeq"
,
FALSE
);
trace
(
"testing UpdateWindow(NULL)
\n
"
);
SetLastError
(
0xdeadbeef
);
ok
(
!
UpdateWindow
(
NULL
),
"UpdateWindow(NULL) should fail
\n
"
);
ok
(
GetLastError
()
==
ERROR_INVALID_WINDOW_HANDLE
||
broken
(
GetLastError
()
==
0xdeadbeef
)
/* win9x */
,
"wrong error code %d
\n
"
,
GetLastError
());
check_update_rgn
(
hwnd
,
0
);
flush_events
();
ok_sequence
(
WmEmptySeq
,
"WmEmptySeq"
,
FALSE
);
/* now with frame */
SetRectRgn
(
hrgn
,
-
5
,
-
5
,
20
,
20
);
...
...
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