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
de267347
Commit
de267347
authored
Oct 26, 2008
by
Detlef Riekenberg
Committed by
Alexandre Julliard
Oct 27, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32/tests: Avoid crash on win9x.
parent
d85c3e7c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
win.c
dlls/user32/tests/win.c
+8
-2
No files found.
dlls/user32/tests/win.c
View file @
de267347
...
...
@@ -4768,14 +4768,20 @@ static void test_GetWindowModuleFileName(void)
static
void
test_hwnd_message
(
void
)
{
static
const
WCHAR
mainwindowclassW
[]
=
{
'M'
,
'a'
,
'i'
,
'n'
,
'W'
,
'i'
,
'n'
,
'd'
,
'o'
,
'w'
,
'C'
,
'l'
,
'a'
,
's'
,
's'
,
0
};
static
const
WCHAR
message_windowW
[]
=
{
'm'
,
'e'
,
's'
,
's'
,
'a'
,
'g'
,
'e'
,
' '
,
'w'
,
'i'
,
'n'
,
'd'
,
'o'
,
'w'
,
0
};
HWND
parent
=
0
,
hwnd
,
found
;
RECT
rect
;
hwnd
=
CreateWindowExA
(
0
,
"MainWindowClass"
,
"message window"
,
WS_CAPTION
|
WS_VISIBLE
,
/* HWND_MESSAGE is not supported below w2k, but win9x return != 0
on CreateWindowExA and crash later in the test.
Use UNICODE here to fail on win9x */
hwnd
=
CreateWindowExW
(
0
,
mainwindowclassW
,
message_windowW
,
WS_CAPTION
|
WS_VISIBLE
,
100
,
100
,
200
,
200
,
HWND_MESSAGE
,
0
,
0
,
NULL
);
if
(
!
hwnd
)
{
win_skip
(
"CreateWindowEx
A
with parent HWND_MESSAGE failed
\n
"
);
win_skip
(
"CreateWindowEx
W
with parent HWND_MESSAGE failed
\n
"
);
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