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
74ece17c
Commit
74ece17c
authored
Aug 04, 2006
by
Dan Hipschman
Committed by
Alexandre Julliard
Aug 04, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user: Call SetLastError in CreateWindowEx when WS_CHILD is set with no parent.
parent
50486859
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
win.c
dlls/user/tests/win.c
+1
-1
win.c
dlls/user/win.c
+1
-0
No files found.
dlls/user/tests/win.c
View file @
74ece17c
...
...
@@ -140,7 +140,7 @@ static void test_parent_owner(void)
SetLastError
(
0xdeadbeef
);
test
=
CreateWindowExA
(
0
,
"ToolWindowClass"
,
"Tool window 1"
,
WS_CHILD
,
0
,
0
,
100
,
100
,
0
,
0
,
0
,
NULL
);
todo_wine
ok
(
GetLastError
()
==
ERROR_TLW_WITH_WSCHILD
,
"CreateWindowExA should call SetLastError
\n
"
);
ok
(
GetLastError
()
==
ERROR_TLW_WITH_WSCHILD
,
"CreateWindowExA should call SetLastError
\n
"
);
ok
(
!
test
,
"WS_CHILD without parent created
\n
"
);
/* desktop window */
...
...
dlls/user/win.c
View file @
74ece17c
...
...
@@ -995,6 +995,7 @@ static HWND WIN_CreateWindowEx( CREATESTRUCTA *cs, ATOM classAtom, UINT flags )
if
((
cs
->
style
&
(
WS_CHILD
|
WS_POPUP
))
==
WS_CHILD
)
{
WARN
(
"No parent for child window
\n
"
);
SetLastError
(
ERROR_TLW_WITH_WSCHILD
);
return
0
;
/* WS_CHILD needs a parent, but WS_POPUP doesn't */
}
if
(
classAtom
!=
LOWORD
(
DESKTOP_CLASS_ATOM
))
/* are we creating the desktop itself? */
...
...
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