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
88694be2
Commit
88694be2
authored
Jun 14, 2006
by
Vitaly Lipatov
Committed by
Alexandre Julliard
Jun 15, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Fix character conversion in combo box.
Replace toupper/tolower with CharUpper/CharLower functions.
parent
8cc69977
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
10 deletions
+12
-10
combo.c
dlls/user/combo.c
+12
-10
No files found.
dlls/user/combo.c
View file @
88694be2
...
...
@@ -2080,26 +2080,28 @@ static LRESULT ComboWndProc_common( HWND hwnd, UINT message,
if
(
unicode
)
{
if
(
lphc
->
dwStyle
&
CBS_LOWERCASE
)
strlw
rW
((
LPWSTR
)
lParam
);
CharLowe
rW
((
LPWSTR
)
lParam
);
else
if
(
lphc
->
dwStyle
&
CBS_UPPERCASE
)
strup
rW
((
LPWSTR
)
lParam
);
CharUppe
rW
((
LPWSTR
)
lParam
);
return
SendMessageW
(
lphc
->
hWndLBox
,
LB_ADDSTRING
,
0
,
lParam
);
}
else
/* unlike the unicode version, the ansi version does not overwrite
the string if converting case */
{
char
*
p
,
*
string
=
NULL
;
char
*
string
=
NULL
;
LRESULT
ret
;
if
(
lphc
->
dwStyle
&
CBS_LOWERCASE
)
{
string
=
strdupA
((
LPSTR
)
lParam
);
for
(
p
=
string
;
*
p
;
p
++
)
*
p
=
tolower
(
*
p
);
CharLowerA
(
string
);
}
else
if
(
lphc
->
dwStyle
&
CBS_UPPERCASE
)
{
string
=
strdupA
((
LPSTR
)
lParam
);
for
(
p
=
string
;
*
p
;
p
++
)
*
p
=
toupper
(
*
p
);
CharUpperA
(
string
);
}
ret
=
SendMessageA
(
lphc
->
hWndLBox
,
LB_ADDSTRING
,
0
,
string
?
(
LPARAM
)
string
:
lParam
);
HeapFree
(
GetProcessHeap
(),
0
,
string
);
return
ret
;
...
...
@@ -2112,18 +2114,18 @@ static LRESULT ComboWndProc_common( HWND hwnd, UINT message,
if
(
unicode
)
{
if
(
lphc
->
dwStyle
&
CBS_LOWERCASE
)
strlw
rW
((
LPWSTR
)
lParam
);
CharLowe
rW
((
LPWSTR
)
lParam
);
else
if
(
lphc
->
dwStyle
&
CBS_UPPERCASE
)
strup
rW
((
LPWSTR
)
lParam
);
CharUppe
rW
((
LPWSTR
)
lParam
);
return
SendMessageW
(
lphc
->
hWndLBox
,
LB_INSERTSTRING
,
wParam
,
lParam
);
}
else
{
char
*
p
;
if
(
lphc
->
dwStyle
&
CBS_LOWERCASE
)
for
(
p
=
(
LPSTR
)
lParam
;
*
p
;
p
++
)
*
p
=
tolower
(
*
p
);
CharLowerA
((
LPSTR
)
lParam
);
else
if
(
lphc
->
dwStyle
&
CBS_UPPERCASE
)
for
(
p
=
(
LPSTR
)
lParam
;
*
p
;
p
++
)
*
p
=
toupper
(
*
p
);
CharUpperA
((
LPSTR
)
lParam
);
return
SendMessageA
(
lphc
->
hWndLBox
,
LB_INSERTSTRING
,
wParam
,
lParam
);
}
case
CB_DELETESTRING16
:
...
...
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