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
43dcd40c
Commit
43dcd40c
authored
Oct 28, 2014
by
Piotr Caban
Committed by
Alexandre Julliard
Oct 29, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Show that IME window class is one of builtin classes.
parent
3311684e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
52 additions
and
0 deletions
+52
-0
class.c
dlls/user32/tests/class.c
+52
-0
No files found.
dlls/user32/tests/class.c
View file @
43dcd40c
...
...
@@ -1101,6 +1101,57 @@ static void test_comctl32_classes(void)
}
}
static
void
test_IME
(
void
)
{
static
const
WCHAR
ime_classW
[]
=
{
'I'
,
'M'
,
'E'
,
0
};
char
module_name
[
MAX_PATH
],
*
ptr
;
MEMORY_BASIC_INFORMATION
mbi
;
HMODULE
imm32
=
NULL
;
WNDCLASSW
wnd_classw
;
WNDCLASSA
wnd_class
;
SIZE_T
size
;
BOOL
ret
;
if
(
!
GetProcAddress
(
GetModuleHandleA
(
"user32.dll"
),
"BroadcastSystemMessageExA"
))
{
skip
(
"BroadcastSystemMessageExA not available, skipping IME class test
\n
"
);
return
;
}
todo_wine
ok
(
GetModuleHandleA
(
"imm32"
)
!=
0
,
"imm32.dll is not loaded
\n
"
);
if
(
!
GetModuleHandleA
(
"imm32"
))
imm32
=
LoadLibraryA
(
"imm32"
);
ret
=
GetClassInfoA
(
NULL
,
"IME"
,
&
wnd_class
);
ok
(
ret
,
"GetClassInfo failed: %d
\n
"
,
GetLastError
());
size
=
VirtualQuery
(
wnd_class
.
lpfnWndProc
,
&
mbi
,
sizeof
(
mbi
));
todo_wine
ok
(
size
==
sizeof
(
mbi
),
"VirtualQuery returned %ld
\n
"
,
size
);
if
(
size
==
sizeof
(
mbi
))
{
size
=
GetModuleFileNameA
(
mbi
.
AllocationBase
,
module_name
,
sizeof
(
module_name
));
ok
(
size
,
"GetModuleFileName failed
\n
"
);
for
(
ptr
=
module_name
+
size
-
1
;
ptr
>
module_name
;
ptr
--
)
if
(
*
ptr
==
'\\'
||
*
ptr
==
'/'
)
break
;
if
(
*
ptr
==
'\\'
||
*
ptr
==
'/'
)
ptr
++
;
ok
(
!
lstrcmpiA
(
ptr
,
"user32.dll"
)
||
!
lstrcmpiA
(
ptr
,
"ntdll.dll"
),
"IME window proc implemented in %s
\n
"
,
ptr
);
}
ret
=
GetClassInfoW
(
NULL
,
ime_classW
,
&
wnd_classw
);
ok
(
ret
,
"GetClassInfo failed: %d
\n
"
,
GetLastError
());
size
=
VirtualQuery
(
wnd_classw
.
lpfnWndProc
,
&
mbi
,
sizeof
(
mbi
));
ok
(
size
==
sizeof
(
mbi
),
"VirtualQuery returned %ld
\n
"
,
size
);
size
=
GetModuleFileNameA
(
mbi
.
AllocationBase
,
module_name
,
sizeof
(
module_name
));
ok
(
size
,
"GetModuleFileName failed
\n
"
);
for
(
ptr
=
module_name
+
size
-
1
;
ptr
>
module_name
;
ptr
--
)
if
(
*
ptr
==
'\\'
||
*
ptr
==
'/'
)
break
;
if
(
*
ptr
==
'\\'
||
*
ptr
==
'/'
)
ptr
++
;
todo_wine
ok
(
!
lstrcmpiA
(
ptr
,
"user32.dll"
)
||
!
lstrcmpiA
(
ptr
,
"ntdll.dll"
),
"IME window proc implemented in %s
\n
"
,
ptr
);
if
(
imm32
)
FreeLibrary
(
imm32
);
}
START_TEST
(
class
)
{
char
**
argv
;
...
...
@@ -1113,6 +1164,7 @@ START_TEST(class)
return
;
}
test_IME
();
test_GetClassInfo
();
test_extra_values
();
...
...
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