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
4843cff6
Commit
4843cff6
authored
Jul 03, 2011
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jul 04, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32/tests: Test that class data is set with wrong size value too.
parent
39694168
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
class.c
dlls/user32/tests/class.c
+6
-0
No files found.
dlls/user32/tests/class.c
View file @
4843cff6
...
...
@@ -954,22 +954,28 @@ if (0) { /* crashes under XP */
"expected ERROR_NOACCESS, got %d
\n
"
,
GetLastError
());
wcx
.
cbSize
=
0
;
wcx
.
lpfnWndProc
=
NULL
;
SetLastError
(
0xdeadbeef
);
ret
=
GetClassInfoExA
(
0
,
"static"
,
&
wcx
);
ok
(
ret
,
"GetClassInfoExA() error %d
\n
"
,
GetLastError
());
ok
(
wcx
.
cbSize
==
0
,
"expected 0, got %u
\n
"
,
wcx
.
cbSize
);
ok
(
wcx
.
lpfnWndProc
!=
NULL
,
"got null proc
\n
"
);
wcx
.
cbSize
=
sizeof
(
wcx
)
-
1
;
wcx
.
lpfnWndProc
=
NULL
;
SetLastError
(
0xdeadbeef
);
ret
=
GetClassInfoExA
(
0
,
"static"
,
&
wcx
);
ok
(
ret
,
"GetClassInfoExA() error %d
\n
"
,
GetLastError
());
ok
(
wcx
.
cbSize
==
sizeof
(
wcx
)
-
1
,
"expected sizeof(wcx)-1, got %u
\n
"
,
wcx
.
cbSize
);
ok
(
wcx
.
lpfnWndProc
!=
NULL
,
"got null proc
\n
"
);
wcx
.
cbSize
=
sizeof
(
wcx
)
+
1
;
wcx
.
lpfnWndProc
=
NULL
;
SetLastError
(
0xdeadbeef
);
ret
=
GetClassInfoExA
(
0
,
"static"
,
&
wcx
);
ok
(
ret
,
"GetClassInfoExA() error %d
\n
"
,
GetLastError
());
ok
(
wcx
.
cbSize
==
sizeof
(
wcx
)
+
1
,
"expected sizeof(wcx)+1, got %u
\n
"
,
wcx
.
cbSize
);
ok
(
wcx
.
lpfnWndProc
!=
NULL
,
"got null proc
\n
"
);
}
START_TEST
(
class
)
...
...
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