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
73045050
Commit
73045050
authored
Oct 19, 2005
by
Krzysztof Foltman
Committed by
Alexandre Julliard
Oct 19, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix CB_GETLBTEXT ANSI-Unicode calls when return value is an error
code.
parent
44cbdf21
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
winproc.c
dlls/user/winproc.c
+12
-2
No files found.
dlls/user/winproc.c
View file @
73045050
...
...
@@ -970,7 +970,12 @@ LRESULT WINPROC_UnmapMsg32ATo32W( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lPa
break
;
case
CB_GETLBTEXT
:
if
(
WINPROC_TestCBForStr
(
hwnd
))
if
(
result
<
0
)
/* CB_ERR and CB_ERRSPACE */
{
LPARAM
*
ptr
=
(
LPARAM
*
)
lParam
-
1
;
HeapFree
(
GetProcessHeap
(),
0
,
ptr
);
}
else
if
(
WINPROC_TestCBForStr
(
hwnd
))
{
LPARAM
*
ptr
=
(
LPARAM
*
)
lParam
-
1
;
result
=
WideCharToMultiByte
(
CP_ACP
,
0
,
(
LPWSTR
)
lParam
,
-
1
,
...
...
@@ -1232,7 +1237,12 @@ static LRESULT WINPROC_UnmapMsg32WTo32A( HWND hwnd, UINT msg, WPARAM wParam, LPA
break
;
case
CB_GETLBTEXT
:
if
(
WINPROC_TestCBForStr
(
hwnd
))
if
(
result
<
0
)
/* CB_ERR and CB_ERRSPACE */
{
LPARAM
*
ptr
=
(
LPARAM
*
)
lParam
-
1
;
HeapFree
(
GetProcessHeap
(),
0
,
ptr
);
}
else
if
(
WINPROC_TestCBForStr
(
hwnd
))
{
LPARAM
*
ptr
=
(
LPARAM
*
)
lParam
-
1
;
result
=
MultiByteToWideChar
(
CP_ACP
,
0
,
(
LPSTR
)
lParam
,
-
1
,
(
LPWSTR
)
*
ptr
,
0x7fffffff
)
-
1
;
...
...
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