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
7822398d
Commit
7822398d
authored
Aug 12, 2013
by
Qian Hong
Committed by
Alexandre Julliard
Aug 16, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
imm32/tests: Added more IMCC lock count tests.
parent
87c2581c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
1 deletion
+24
-1
imm32.c
dlls/imm32/tests/imm32.c
+24
-1
No files found.
dlls/imm32/tests/imm32.c
View file @
7822398d
...
...
@@ -715,7 +715,8 @@ static void test_ImmGetIMCLockCount(void)
static
void
test_ImmGetIMCCLockCount
(
void
)
{
HIMCC
imcc
;
DWORD
count
,
ret
;
DWORD
count
,
g_count
,
ret
,
i
;
VOID
*
p
;
imcc
=
ImmCreateIMCC
(
sizeof
(
CANDIDATEINFO
));
count
=
ImmGetIMCCLockCount
(
imcc
);
...
...
@@ -731,6 +732,28 @@ static void test_ImmGetIMCCLockCount(void)
ok
(
ret
==
FALSE
,
"expect FALSE, ret %d
\n
"
,
ret
);
count
=
ImmGetIMCCLockCount
(
imcc
);
ok
(
count
==
0
,
"expect 0, returned %d
\n
"
,
count
);
p
=
ImmLockIMCC
(
imcc
);
todo_wine
ok
(
GlobalHandle
(
p
)
==
imcc
,
"expect %p, returned %p
\n
"
,
imcc
,
GlobalHandle
(
p
));
for
(
i
=
0
;
i
<
GMEM_LOCKCOUNT
*
2
;
i
++
)
{
ImmLockIMCC
(
imcc
);
count
=
ImmGetIMCCLockCount
(
imcc
);
g_count
=
GlobalFlags
(
imcc
)
&
GMEM_LOCKCOUNT
;
todo_wine
ok
(
count
==
g_count
,
"count %d, g_count %d
\n
"
,
count
,
g_count
);
}
count
=
ImmGetIMCCLockCount
(
imcc
);
todo_wine
ok
(
count
==
GMEM_LOCKCOUNT
,
"expect GMEM_LOCKCOUNT, returned %d
\n
"
,
count
);
for
(
i
=
0
;
i
<
GMEM_LOCKCOUNT
-
1
;
i
++
)
GlobalUnlock
(
imcc
);
count
=
ImmGetIMCCLockCount
(
imcc
);
todo_wine
ok
(
count
==
1
,
"expect 1, returned %d
\n
"
,
count
);
GlobalUnlock
(
imcc
);
count
=
ImmGetIMCCLockCount
(
imcc
);
todo_wine
ok
(
count
==
0
,
"expect 0, returned %d
\n
"
,
count
);
ImmDestroyIMCC
(
imcc
);
}
...
...
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