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
e4dfaab2
Commit
e4dfaab2
authored
May 21, 2004
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
May 21, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a test for window's hinstance.
parent
c3b8ce93
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
class.c
dlls/user/tests/class.c
+6
-3
No files found.
dlls/user/tests/class.c
View file @
e4dfaab2
...
...
@@ -240,7 +240,7 @@ static void check_class(HINSTANCE inst, const char *name, const char *menu_name)
static
void
check_instance
(
const
char
*
name
,
HINSTANCE
inst
,
HINSTANCE
info_inst
,
HINSTANCE
gcl_inst
)
{
WNDCLASS
wc
;
WNDCLASS
A
wc
;
HWND
hwnd
;
ok
(
GetClassInfo
(
inst
,
name
,
&
wc
),
"Couldn't find class %s inst %p
\n
"
,
name
,
inst
);
...
...
@@ -248,9 +248,12 @@ static void check_instance( const char *name, HINSTANCE inst, HINSTANCE info_ins
wc
.
hInstance
,
info_inst
,
name
);
hwnd
=
CreateWindowExA
(
0
,
name
,
"test_window"
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
inst
,
0
);
ok
(
hwnd
!=
NULL
,
"Couldn't create window for class %s inst %p
\n
"
,
name
,
inst
);
ok
(
(
HINSTANCE
)
GetClassLong
(
hwnd
,
GCL_HMODULE
)
==
gcl_inst
,
ok
(
(
HINSTANCE
)
GetClassLong
A
(
hwnd
,
GCL_HMODULE
)
==
gcl_inst
,
"Wrong GCL instance %p/%p for class %s
\n
"
,
(
HINSTANCE
)
GetClassLong
(
hwnd
,
GCL_HMODULE
),
gcl_inst
,
name
);
(
HINSTANCE
)
GetClassLongA
(
hwnd
,
GCL_HMODULE
),
gcl_inst
,
name
);
ok
(
(
HINSTANCE
)
GetWindowLongA
(
hwnd
,
GWL_HINSTANCE
)
==
inst
,
"Wrong GWL instance %p/%p for window %s
\n
"
,
(
HINSTANCE
)
GetWindowLongA
(
hwnd
,
GWL_HINSTANCE
),
inst
,
name
);
DestroyWindow
(
hwnd
);
}
...
...
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