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
8797fb52
Commit
8797fb52
authored
Apr 19, 2010
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Apr 19, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Avoid using HIWORD on a string pointer.
parent
9dd206d2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
lstr.c
dlls/user32/lstr.c
+4
-4
No files found.
dlls/user32/lstr.c
View file @
8797fb52
...
...
@@ -230,7 +230,7 @@ BOOL WINAPI OemToCharW( LPCSTR s, LPWSTR d )
*/
LPSTR
WINAPI
CharLowerA
(
LPSTR
str
)
{
if
(
!
HIWORD
(
str
))
if
(
IS_INTRESOURCE
(
str
))
{
char
ch
=
LOWORD
(
str
);
CharLowerBuffA
(
&
ch
,
1
);
...
...
@@ -256,7 +256,7 @@ LPSTR WINAPI CharLowerA(LPSTR str)
*/
LPSTR
WINAPI
CharUpperA
(
LPSTR
str
)
{
if
(
!
HIWORD
(
str
))
if
(
IS_INTRESOURCE
(
str
))
{
char
ch
=
LOWORD
(
str
);
CharUpperBuffA
(
&
ch
,
1
);
...
...
@@ -282,7 +282,7 @@ LPSTR WINAPI CharUpperA(LPSTR str)
*/
LPWSTR
WINAPI
CharLowerW
(
LPWSTR
x
)
{
if
(
HIWORD
(
x
))
return
strlwrW
(
x
);
if
(
!
IS_INTRESOURCE
(
x
))
return
strlwrW
(
x
);
else
return
(
LPWSTR
)((
UINT_PTR
)
tolowerW
(
LOWORD
(
x
)));
}
...
...
@@ -292,7 +292,7 @@ LPWSTR WINAPI CharLowerW(LPWSTR x)
*/
LPWSTR
WINAPI
CharUpperW
(
LPWSTR
x
)
{
if
(
HIWORD
(
x
))
return
struprW
(
x
);
if
(
!
IS_INTRESOURCE
(
x
))
return
struprW
(
x
);
else
return
(
LPWSTR
)((
UINT_PTR
)
toupperW
(
LOWORD
(
x
)));
}
...
...
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