Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
188610e6
Commit
188610e6
authored
Nov 07, 2007
by
Alex Villacís Lasso
Committed by
Alexandre Julliard
Nov 08, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Fix for failing tests of LB_GETTEXT on listbox on Win98.
parent
5f603f82
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
4 deletions
+12
-4
listbox.c
dlls/user32/tests/listbox.c
+12
-4
No files found.
dlls/user32/tests/listbox.c
View file @
188610e6
...
...
@@ -166,15 +166,23 @@ check (const struct listbox_test test)
DWORD
size
=
SendMessage
(
hLB
,
LB_GETTEXTLEN
,
i
,
0
);
CHAR
*
txt
;
WCHAR
*
txtw
;
int
resA
,
resW
;
txt
=
HeapAlloc
(
GetProcessHeap
(),
0
,
size
+
1
);
SendMessageA
(
hLB
,
LB_GETTEXT
,
i
,
(
LPARAM
)
txt
);
memset
(
txt
,
0
,
size
+
1
);
resA
=
SendMessageA
(
hLB
,
LB_GETTEXT
,
i
,
(
LPARAM
)
txt
);
ok
(
!
strcmp
(
txt
,
strings
[
i
]),
"returned string for item %d does not match %s vs %s
\n
"
,
i
,
txt
,
strings
[
i
]);
txtw
=
HeapAlloc
(
GetProcessHeap
(),
0
,
2
*
size
+
2
);
SendMessageW
(
hLB
,
LB_GETTEXT
,
i
,
(
LPARAM
)
txtw
);
WideCharToMultiByte
(
CP_ACP
,
0
,
txtw
,
-
1
,
txt
,
size
,
NULL
,
NULL
);
ok
(
!
strcmp
(
txt
,
strings
[
i
]),
"returned string for item %d does not match %s vs %s
\n
"
,
i
,
txt
,
strings
[
i
]);
memset
(
txtw
,
0
,
2
*
size
+
2
);
resW
=
SendMessageW
(
hLB
,
LB_GETTEXT
,
i
,
(
LPARAM
)
txtw
);
if
(
resA
!=
resW
)
{
trace
(
"SendMessageW(LB_GETTEXT) not supported on this platform (resA=%d resW=%d), skipping...
\n
"
,
resA
,
resW
);
}
else
{
WideCharToMultiByte
(
CP_ACP
,
0
,
txtw
,
-
1
,
txt
,
size
,
NULL
,
NULL
);
ok
(
!
strcmp
(
txt
,
strings
[
i
]),
"returned string for item %d does not match %s vs %s
\n
"
,
i
,
txt
,
strings
[
i
]);
}
HeapFree
(
GetProcessHeap
(),
0
,
txtw
);
HeapFree
(
GetProcessHeap
(),
0
,
txt
);
...
...
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